The question is related to ''Numerical Analysis'' subject, and insists on using C++ or Matlab programming language only
A researcher found that the location, x, of the maximum bending moment of a beam can be obtained based on the condition that the shear force, f(x), at this location
Using the following equation, determine the exact location that will give maximum being within the location interval of 0 m to 6 m. f(x) = 20 - x2
Write a program of Bisection method to approximate the value of x with an approximate relative error <0.5%.