Define a Piecewise Function - Maple Help

Define a Piecewise Function

 Description Define a piecewise  function.

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)