Write Matlab programs implementing the algorithms based on
bisection,Newton, and secant method for numerical solution of
scalar nonlinear equa-tions. Use these programs to compute
approximations to real roots of the
following equations:
exp(x)−3x^2=0, (1)
x^3=x^2+x+1, (2)
exp(x) =1/(0.1 +x^2), (3)
and
x= 1 + 0.3 cos(x). (4)
Use an error tolerance tol=10^(−12). Display the obtained
approximations to the roots of these equations, and compare the
number of iterations, starting with the same initial values x0 for
bisection and Newton methods,...