Fit - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

MmaTranslator[Mma]

 Fit
 return the least-squares fit for a list of data

 Calling Sequence Fit(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The Fit command returns the least-squares fit for a specified list of data as a linear combination.

Examples

 > $\mathrm{with}\left({\mathrm{MmaTranslator}}_{\mathrm{Mma}}\right):$

Use the command with the Maple translation.

 > $\mathrm{Fit}\left(\left[\left[0,2\right],\left[3,5\right],\left[5,8\right],\left[8,11\right]\right],x+5,x\right)$
 $\frac{{273}{}{x}}{{358}}{+}\frac{{1365}}{{358}}$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{Fit\left[\left\{\left\{0, 2\right\}, \left\{3, 5\right\}, \left\{5, 8\right\}, \left\{8, 11\right\}\right\}, x+5, x\right]},\mathrm{evaluate}\right)$
 $\frac{{273}{}{x}}{{358}}{+}\frac{{1365}}{{358}}$ (2)