Develop a computer algorithm to evaluate the solution of a function within a domain.
The algorithm should be as
efficient as possible in calculating the root of the equation . The user should be asked to provide i) the handle of the
function which requires calculation of root and minimum value, ii) the domain limits
within which the solution or the minimum has to be calculated, iii) an initial solution
estimate & iv) whether the user wants to calculate the solution of the
functional within domain limits. The procedure used to calculate the solution of the
functional should be graphically shown. Presentation and efficiency in
calculations are important grading parameters.