Newton Raphson Code Completed