Utilities for nonlinear least-squares fits.