Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python code numerically calculates a polynomial integral of both fi = 4x3 + 3x2 and f2 = 3x2 + 4x between x =

image text in transcribed
Write a python code numerically calculates a polynomial integral of both fi = 4x3 + 3x2 and f2 = 3x2 + 4x between x = 0 and X 1 corresponding to 12 different number of discretization steps, ST = (50, 100, 150, ... 600), print the integration result on the screen for each function corresponding to ST = 600, calculate %-error value as 'E*100' where E=| Actual value - Calculated Valuel/Actual value ) and plot the %-error as a function of number of steps by using pyplot import. Draw both the error graphs corresponding to find f2 on the same plot. Insert a legend in the plot to distinguish which graph belong to f and f2. In the plot, let minor ticks on. Some points: - Probably both lines will overlap. Therefore, use different line styles (one solid, one dashed for instance) - Place the screenshot of the code and the plot in a pdf file. This pdf file is your main answer sheet. Your name, surname and your student ID number should also take place at the beginning of the answer pdf sheet. -Place the screenshot of the integration result for each function corresponding to ST = 600

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

ISBN: B01JXPZ7AK, 9780805360479

Students also viewed these Databases questions

Question

Identify other organizational patterns for persuasion

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

14-18 Compare the two major types of planning and control tools.

Answered: 1 week ago