Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

what are two examples of an unauthenticated attack?

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago