Maple Tool3.mws

Maple Tool 3

This tool is designed for use with Checkpoint 1 in Section 5.4.

>    with(stats[statplots]):with(plots):

Warning, these names have been redefined: boxplot, histogram, scatterplot, xscale, xshift, xyexchange, xzexchange, yscale, yshift, yzexchange, zscale, zshift

Here are the data for average monthly highs and lows.

>    Months:=[1,2,3,4,5,6,7,8,9,10,11,12]:
Highs:=[43,47,57,67,74,82,86,84,77,66,58,48];
Lows:=[26,29,36,44,53,62,67,66,59,47,38,31];

Highs := [43, 47, 57, 67, 74, 82, 86, 84, 77, 66, 58, 48]

Lows := [26, 29, 36, 44, 53, 62, 67, 66, 59, 47, 38, 31]

We calculate the mean monthly temperatures.

>    Mean:=(Highs+Lows)/2;

Mean := [69/2, 38, 93/2, 111/2, 127/2, 72, 153/2, 75, 68, 113/2, 48, 79/2]

We plot the monthly high, low, and average temperatures.

>    HighPlot:=scatterplot(Months,Highs,color=navy, thickness=2, view=[0..13,0..100], xtickmarks=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ytickmarks=[0,20,40,60,80,100]):

>    LowPlot:=scatterplot(Months,Lows,color=navy, thickness=2, view=[0..13,0..100], xtickmarks=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ytickmarks=[0,20,40,60,80,100]):

>    MeanPlot:=scatterplot(Months,Mean,color=red, thickness=2, view=[0..13,0..100], xtickmarks=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], ytickmarks=[0,20,40,60,80,100]):

>    display(HighPlot, LowPlot, MeanPlot);

[Maple Plot]

Now enter values for A , B , C , and delta  (standing in for D ), and compare the graph of the model function to the data.

>    A:=(153/2+69/2)/2;
B:=(153/2-69/2)/2;
C:=Pi/6;
delta:=4.1;
T:=t->A+B*sin(C*(t-delta));
TPlot:=plot(T(t),t=0..12):
display(MeanPlot,TPlot);

A := 111/2

B := 21

C := 1/6*Pi

delta := 4.1

T := proc (t) options operator, arrow; A+B*sin(C*(t-delta)) end proc

[Maple Plot]

>   

>