Question: 1/ Write matlab code to calulate taylor series WITHOUT use function taylor(f,var) in matlab. 2/ write matlab code with using function taylor(f,var) in matlab 3/Compare

1/ Write matlab code to calulate taylor series WITHOUT use function taylor(f,var) in matlab.
2/ write matlab code with using function taylor(f,var) in matlab
3/Compare bewteen first and second step by evaluating the error (graph)
##ALL INFORMATION ON PHOTO ##
Thank you
1/ Write matlab code to calulate taylor series WITHOUT use function taylor(f,var)

Exercise 1. Matlab code for Taylor's serie The Goal of this exercise is the devlopement of a Matlab Code who compare a given function defined on an interval (a, b) and its Truncated Taylor's serie. Taylor serie a t ordern: f(x) = E... (C) (x a)* +R,(a) Approximation of Ordern: Pa(z) 22.0 (150 (2-a) Approximation Error at order : R. (x) - (x) - P. (1) 20 (-a)"+1 (n + 1)! 1. Your Matab code will have the following input variables: a, b, n. The function must be given as a variable, such that you can test several functions. You have also to give, as an input of your Matlab code, the functions f(x). f'()...../"(r), then first derivatives of the function in the point a. The derivative can be computed with using the Matlab function dill 2. Your Matlab code will plot in the same picture, the graph of the functions f(x), Po(x), P. (x),..., P. ) on the interval (a,b). 3. Run your Matlab code for tese functions: Cos(x), sin(x), c', sinh(),cosh(x), In (1 + r). 4. If the plot on the intervalla, 6 is not acceptable, propose a different intervalla,d,c

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 Databases Questions!