Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Utilizing Mathematica, please help me solve Problem 1 parts (a) and (b). 1. Plot the function f(x) = 23 cos(x). (a) Use Find Root to

image text in transcribedUtilizing Mathematica, please help me solve Problem 1 parts (a) and (b).

1. Plot the function f(x) = 23 cos(x). (a) Use Find Root to locate a root near x = 3 (b) Write a program in Mathematica implementing Newton's method with a while loop instead of a For loop. Use your program to approximate the root near x = -1. Set the maximal number of iterations to 100 and the kick out threshold or tolerance, to 10-4. Display in a table the iteration number, the approximate root, the residual, \f (xn) and successive iteration errors, Xn Xn-1) at each iteration. How many iterations does your program actually execute before it stops? Using the result of (a) as the actual and this result as the computed, calculate the relative absolute error (same as relative error as defined in class) 1. Plot the function f(x) = 23 cos(x). (a) Use Find Root to locate a root near x = 3 (b) Write a program in Mathematica implementing Newton's method with a while loop instead of a For loop. Use your program to approximate the root near x = -1. Set the maximal number of iterations to 100 and the kick out threshold or tolerance, to 10-4. Display in a table the iteration number, the approximate root, the residual, \f (xn) and successive iteration errors, Xn Xn-1) at each iteration. How many iterations does your program actually execute before it stops? Using the result of (a) as the actual and this result as the computed, calculate the relative absolute error (same as relative error as defined in class)

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_2

Step: 3

blur-text-image_3

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

Which of the following is an approved stream cipher for TLS 1 . 3 ?

Answered: 1 week ago