Answered step by step
Verified Expert Solution
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
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 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started