Question: Matlab code and output please n 4. Using a nth degree Maclaurin polynomial, In(1+x) function can be approximated as following: x2 x3 x4 (-1)*+1xk In(1

Matlab code and output please

 Matlab code and output please n 4. Using a nth degree

n 4. Using a nth degree Maclaurin polynomial, In(1+x) function can be approximated as following: x2 x3 x4 (-1)*+1xk In(1 + x) = x - + + 2! 3! 4! n! k! k=1 Create a function approxn using a for loop to approximate the value of In2 (meaning x = 1). The function takes one input n and one output which is the approximation. Please use following Matlab functions: In function -log(x) Absolute value function - abs(x) Once you create the function, please use the function and for loop to calculate the approximation value from n=1 to n = 10, then store the value to a vector called approxVec

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!