## Nonlinear least squares curve fitting in Julia

One commenter on my arduino curve-fitting post asked if it was possible to fit to nonlinear functions as well, such as a decaying sine wave. I said I had no idea, so I did some research and found the Levenberg-Marquardt algorithm. The LM algorithm takes …