Newton raphson program of assignment 4