Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Taylor series about x = 0 for inverse tangent function is given by t a n - 1 ( x ) = n =

The Taylor series about x=0 for inverse tangent function is given by
tan-1(x)=n=0(-1)nx2n+12n+1
(a) Write a computer program to evaluate tan-1(x) by truncating the series to N+1 terms. (Make sure you include your code in the submission.) Describe the choices you made in writing your program.
(b) Use your program to approximate by evaluating tan-1(1) for different values of N. Display your results in a form of a table. Make sure your table also includes absolute and relative errors. For error calculation use that ~~3.141592653589793.
(c) Repeat the same work by using tan-1(323).
(d) Plot the errors and approximations from parts (a) and (b) versus the number of terms in the Taylor expansion on a semilog (log-linear) and log-log graph. Look at the graphs you made and make conclusions about the rate of convergence. (In MATLAB you can use commands semilogy and loglog.)
image text in transcribed

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions