Question: Part B Finding the roots to an equation using Newton's Method. Objective of this program is to practice floating point calculations in MIPS. All calculations
Part B
Finding the roots to an equation using Newton's Method.
Objective of this program is to practice floating point calculations in MIPS. All calculations should be done as doubles. Note, that output will not be very eye appealing due to the format when doubles are printed. Don't worry about that.
Newton devised a method to find thea root to an equation by applying the following formula until the error was sufficiently small.
Consider a continuous function where its derivative is Thus, by calculating successive values of the value of will approach and hence be a root of
Write a MIPS program which will find to a tolerance of Thus, find so that the change of is less than
To start you should write leaf functions, one which calculates and the other Prompt the user to enter an initial value for hence Then calculate each new until is sufficiently close to Try as an initial value.
Your program should output and the value of for each root that you find. You should try other values for the initial value of to test your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
