Modified Ridders and Newton-Raphson to allow passing of initial function value along with initial guess