Define a Piecewise Function - Maple Programming Help

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)