9marksj Consider the function zln 3x1 9marks Consider the fu
(9marksj Consider the function /(z)-ln (3x-1) 9marks) Consider the function (a) -In (3 -1) (a) Taylor Polynomials (Section 1.1 in text): Open the file named Taylor m in MATLAB\'s Editor. Complete the code that determines the 3rd degree Taylor polyno- mial T(z) off about xo 2, State T(z) in the space provided. [Note: In general, f(n)(2)--(4)n(n-1)!] ote: In general, fn)g2 T(a)
Solution
Answer:
->syms x
->f=inline(’log(x)’)
f = Inline function:
f(x) = log(x)
->taylor(f(x),2,1)
ans =
x-1
->taylor(f(x),3,1)
ans =
x-1-1/2*(x-1)ˆ2
->taylor(f(x),4,1)
ans =
x-1-1/2*(x-1)ˆ2+1/3*(x-1)ˆ3
->taylor(f(x),5,1)
ans =
x-1-1/2*(x-1)ˆ2+1/3*(x-1)ˆ3-1/4*(x-1)ˆ4
