To create a piecewise defined function in Maple, use the following syntax.
>
(1)
>
(2)
>
>
>