Question: 1. Construct a second order Taylor polynomial, p2(x) f(x) = 1/(x + 1), x [] using x = 0 and find its error, R2(x).

1. Construct a second order Taylor polynomial, p2(x) f(x) = 1/(x +  

1. Construct a second order Taylor polynomial, p2(x) f(x) = 1/(x + 1), x [] using x = 0 and find its error, R2(x). Perform this calculation by hand. 2. Using the same function, construct Lagrange polynomial using nodes x = {0,1}. Do this calculation by hand. Plot your exact function and Lagrange polynomial using matplotlib. 3. Optimised f(x) =sin(x) with initial guess x = 0.5. Stop your calculation when tol/error = 105. Plot your exact function and the optimization point. For this question, use Python programming.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!