Question: 1. Using MATLAB, write an Bisection algorithm to solve f(x) = 0. The end user who uses your algorithm should only input the function f(x).
1. Using MATLAB, write an Bisection algorithm to solve f(x) = 0. The end user who uses your algorithm should only input the function f(x). Your algorithm should also ask the end user to input the starting point r=a and the step size h. Hence your algorithm should have the message: (1) Please input your function f(x) (2) Please input your starting point x = a (3) Please input your stepsize h. After solving, your algorithm should give the message: "Your solution is = " Test your algorithm using a simple function f(x) that you know the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
