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 tan 1 ( x ) = infty n = 0

The Taylor series about x =0 for inverse tangent function is given by
tan1(x)=
\infty
n=0
(1)nx2n+1
2n +1
(a) Write a computer program to evaluate tan1(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 \pi by evaluating tan1(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 \pi 3.141592653589793.
(c) Repeat the same work by using tan1
(3
3
)
.
(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.)

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions