Assignment6 completed: phi,phi_q,nu and gamma are put together and newton raphson works