Skip to content

Fit

Performs a least-squares fit of data to a linear combination of basis functions.

$ wo 'Fit[{2, 4, 6}, {x}, x]'
2\.(0+\d*)?\*x (regex)