Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started