Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

Name the problem as HW1Problem2

Computer Science Jan 22, 2022

Name the problem as HW1Problem2.m Write a script to do the following items. 1) Find Taylor expansion of f(x) = arctan (x), i.e., Pn (x), for n = 1, 2, .... Here is the commend in MATLAB f= atan(x); P(n) = taylor(f, x, 'Order', n); 2) Now, we want to use this Taylor approximations to find the value of pi, (TI), for a given accuracy. Suppose, this can be done by following recursive formulas 4[Pn () + Pn] (1) and 16P, () – 4Pm670) (2) on which, for example, Pn (1) means nth Taylor approximation of f(x) = arctan (x) evaluated at x = 12 / 3) Use these two formulas to approximate n for the accuracy of 20-digit. In another word, find n on which the error is 10-21 for each separate above formula (1) and (2). i.e., E = abs((11 – approx1 or 2)) < 10-21, where n = pi is MATLAB calculation of it and approx) is approximation of it by (1) and approx2 is approximation of it by (2). 4) Write down in a commend line (in the end of your script) that which formula (1) or (2) is more accurate in calculating n.

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment