Question: Objectives: Determine the root of a function using the bisection method to a specified number of iterations by hand or by writing a Matlab code.
Objectives: Determine the root of a function using the bisection method to a specified number of iterations by hand or by writing a Matlab code. You should be able to sketch each iteration on a plot to describe the process 3. (3.18 modified) Determining the natural logarithm of a number p, In(p) is the same as finding a solution to the equation shown. Use the bisection method to find the root of the equation. a) By hand calculate the first 3 iterations of the bisection method for p = 50 on the interval [eo, Show each step. b) Write a Matlab script named huk5_3.m where p is the number whose natural logarithm is determined on the interval le p. The program should stop when it reaches a tolerance of 1z10 or 100 iterations based on user inputs of the tolerance and iteration count. The program should also display an error message if a negative number is entered for p. Hint: See example 3-1 in your textbook. c) Improve your program to adjust the interval based on the user inputs. If b > el the interval is [e" p), if b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
