Question: Question 1: [10 points Write a MATLAB function that calculates the approximate value of arctan(x) using the Maclaurin series approximation: arctan(x) = x--+--+- The function

 Question 1: [10 points Write a MATLAB function that calculates the

Question 1: [10 points Write a MATLAB function that calculates the approximate value of arctan(x) using the Maclaurin series approximation: arctan(x) = x--+--+- The function should accept 3 parameters: value of x, number of significant figures accuracy i.e. n, and the maximum number of iterations. In the function, use $-(0.5 102-")% in order to continue until the falls below this criteria. The function should return 3 values: the approximate value of arctan(r) at the end e program, final and the number of iterations it took. Submit the snapshots showing the program running from the command prompt for x and 2. Question 2: 10 points] Write a MATLAB function that uses Bisection Method to iteratively estimate the root of the equation sin(x)-x2 in the interval [r4Xu] until Ea s less than . Note that x is in radians. Thefunction should accept 3 parameters: initial x1,x, , and " and return these 5 parameters for each iteration x1.xu.xr Sign {f(xl)/(%)} and Ea. (Hint: Function should return arrays instead of single values) Please write a script which gives output in the following tabular form for the developed function using x- 0.5, xu 1 and E.-0. 1%. Submit the snapshot of the output of the script Iteration Signfxf(xr)) E" (in %) 14 Note: See figure 5.11 for the pseudocode of Bisection Method

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!