9.2 Nonlinear least squares