Finding the Roots of Algebraic and Transcendental Equations using Numerical Methods