Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. In class, we generated digits of using a Taylor series for tan (z). There are better ways! Here are three other series that

    

6. In class, we generated digits of using a Taylor series for tan (z). There are better ways! Here are three other series that could be used: Madhava's representation: Newton's: Ramanujan's: T 1 = 22 9801 Do the following: = 12 (3) 2k+1 =2 IM8 (2k + 1)! (4k)! (1103+26390k) (k!)*3964 (a) (3 points) For each series, write a MATLAB function file that takes an integer n as an input and outputs the series out to the nth term. Use your functions to find the approximations to for each, out to the n 15th term and compare it to the exact value of x. You will find the command format long to be useful for displaying the results in scientific notation. How many digits are correct for each? (b) (3 points) For Madhava's representation only, convert your code to use a while loop instead of a for loop. Use this to determine how many terms must be included in order to approximate r within 10-15 of the exact value.

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

Step: 3

blur-text-image

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

Understanding Business Ethics

Authors: Peter A. Stanwick, Sarah D. Stanwick

3rd Edition

1506303234, 9781506303239

More Books

Students also viewed these Programming questions

Question

Find the median for the set of measurements 2, 9, 11, 5, 6, 27.

Answered: 1 week ago