newton raphsons method for quadratic equation code example Example: netwon raphson x(i+1) = x(i)-f(xi)/f'(xi)