update nonlinear equation codes.