Define a Piecewise Function - Maple Programming Help

Home : Support : Online Help : Tasks : Algebra : Defining Expressions, Functions, and Procedures : Task/DefinePiecewiseFunction

Define a Piecewise Function

 Description Define a piecewise function.   The piecewise template can be entered via the icon in the Expression palette. See here in the Student Portal.

Specify the expressions and their ranges, and then define the function.

 > $f≔x\to {\begin{array}{cc}{{x}}^{{2}}& {x}{\le }{1}\\ \frac{{\mathrm{sin}}\left({x}{-}{1}\right)}{{x}{-}{1}}& {x}{>}{1}\end{array}$
 ${f}{:=}{x}{→}{\mathrm{piecewise}}{}\left({x}{\le }{1}{,}{{x}}^{{2}}{,}{1}{<}{x}{,}\frac{{\mathrm{sin}}{}\left({x}{-}{1}\right)}{{x}{-}{1}}\right)$ (1)

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