Solve using MATLAB! f(x) = arcsin(x) -sin^-1 (x) = Sigma _n = 0^N (2n)!/4^n(n!)^2(2n + 1) x^(2n + 1), N = infinity and |x| lessthanorequalto 1 Write a MATLAB function, named my_f2, that will accept x...

Solve using MATLAB! f(x) = arcsin(x) -sin^-1 (x) = Sigma _n = 0^N (2n)!/4^n(n!)^2(2n + 1) x^(2n + 1), N = infinity and |x| lessthanorequalto 1 Write a MATLAB function, named my_f2, that will accept x and N as inputs and produce two outputs, corresponding to the approximated value of f(x) in degrees, and the percentage error between the exact value and the approximated value. The function should check the value of x and display an error if it's out of range: otherwise, it will report the outputs. Test your function for (x = 0.5 and N = 5), and for (x = 2 and N= 8). Test your function for (x = 0 and N = 5). Show how to correct the reported value of the error. For -1 lessthanorequalto x lessthanorequalto 1, and N = 8, generate a 2D plot, showing the approximate f(x), on the y-axis, versus x, on the x-axis.

Dec 03, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here