add nonlinear equation codes