Most of our curve fitting (except for very simple fits, like linear) is done using a non-linear n-dimensional search following methods described in books like Data Reduction and Error Analysis For the Physical Sciences, by Bevington and Robinson.
Th...