Maple Tool3.mws

Section 7.1

Maple Tool 3

This file is designed for use in Exercise 21, Section 7.1.

The Maple function piecewise  is used to define a function in segments by a sequence of "condition-value" pairs.

>   

>     f:=t->piecewise((0<=t and t<=1), t^2, (t>1 and t<=2), t-1, (t>2 and t<=3), sin(t));

>   

Here is a plot of the function f.  Note that the vertical segments are not part of the graph of the function.

>    plot(f(t), t=0..3, linestyle=DASH, scaling=constrained);

>   

>