Question: In matlab how would I ask the user to enter a starting guess 0 to use as the first value for the Newton-Raphson method. If
In matlab how would I ask the user to enter a starting guess 0 to use as the first value for the Newton-Raphson method. If this guess causes the derivative of the temperature function to be zero (i.e. if (0 ) = 0 ), the method will immediately fail due to a division by zero. Check if the initial guess will cause the method to fail. If so, prompt the user to enter a new initial guess until the user enters a valid value. If the user does not enter an acceptable guess after 3 attempts, produce an error and terminate the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
