Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Determine the number of terms necessary to approximate c o s x to 8 significant figures using Maclaurin series approximation. c o s x =

Determine the number of terms necessary to approximate cosx to 8 significant figures using
Maclaurin series approximation.
cosx=1-x22+x44!-x66!+x88!-cdots
Calculate and display the approximation using a value of x=0.3.
a. Do this by hand using 4 terms to evaluate cosx. Compute relative true error (%) and
relative approximate error (%) as terms are added. Create a table that shows the
iteration number, calculated value of cosx, relative true error (that you can
calculate based on the built-in cosine function in your calculator or Excel) and
relative approximate error.
b. Write a Matlab function to evaluate the series. The code should allow an infinite
number of terms, but should be used to evaluate the series to 8 significant figures.
The code should also be able to run until it reaches either a maximum number of
iterations (specified by the user) or a stopping criterion (such as a minimum relative
approximate error, specified by the user in %). Include default values of maxit
(=100) in the event that they are not specified by the user. Output a table that
shows the iteration number, calculated value of cosx, relative true error (that you
can calculate based on the built-in cosine function) and relative approximate error.
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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

What is the indicative word limit?

Answered: 1 week ago

Question

1. Signs and symbols of the map Briefly by box ?

Answered: 1 week ago

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago