Question: Slove using MATLAB! 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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
