Generate a residual function from a nonlinear model expression and a vector of named parameters.
Useful links