Develop a function m-file


Discuss the below:

Q: Develop a function M-file named fun_xb that evaluates the following series:

f(x)= x - x2/2+x3/3-...+(-1)n+1( xn/n)

where values of x and n are passed to the function through arguments. The foregoing series is a truncated Mclaurin expansion. (Taylor series expansion about the point x=0) of log(1+x) and converges for -1

 

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Develop a function m-file
Reference No:- TGS01938859

Now Priced at $25 (50% Discount)

Recommended (97%)

Rated (4.9/5)