Define a Piecewise Expression - Maple Programming Help

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

Define a Piecewise Expression

 Description Define a piecewise expression.   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 expression.

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