Newton Raphson Method with direct inputs