Spline - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Tasks : Curve Fitting : Task/CurveFitting_Spline

Spline

 Description Define the spline of specified data points. The result is a piecewise polynomial.

Enter a list of data points.

 > $\left[\left[{-5}{,}{5}\right]{,}\left[{0}{,}{2}\right]{,}\left[{4}{,}{0}\right]\right]$
 $\left[\left[{-}{5}{,}{5}\right]{,}\left[{0}{,}{2}\right]{,}\left[{4}{,}{0}\right]\right]$ (1)

Specify the independent variable, and then define the spline.

 > $s:=\mathrm{CurveFitting}\left[\mathrm{Spline}\right]\left(,{x}\right)$
 ${s}{:=}{{}\begin{array}{cc}{2}{-}\frac{{49}}{{90}}{}{x}{+}\frac{{1}}{{60}}{}{{x}}^{{2}}{+}\frac{{1}}{{900}}{}{{x}}^{{3}}& {x}{<}{0}\\ {2}{-}\frac{{49}}{{90}}{}{x}{+}\frac{{1}}{{60}}{}{{x}}^{{2}}{-}\frac{{1}}{{720}}{}{{x}}^{{3}}& {\mathrm{otherwise}}\end{array}$ (2)
 Commands Used
 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam