MmaTranslator[Mma] - Maple Help

Home : Support : Online Help : Connectivity : Mathematica Translator : Mma : MmaTranslator/Mma/Fit

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}}{{358}}{}{x}{+}\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}}{{358}}{}{x}{+}\frac{{1365}}{{358}}$ (2)