<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="12" minor="2"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>
<MapleNet-Properties elisiondigitsbefore="100" labelling="true" indentamount="4" elisiontermsthreshold="10000" ansi="false" errorbreak="1" useclientjvm="true" echo="1" imaginaryunit="I" labelwidth="20" plotdriver="openviz" elisiondigitsafter="100" plotoutput="terminal" rtablesize="10" elisiontermsbefore="100" elisiondigitsthreshold="10000" typesetting="standard" plotdevice="inline" verboseproc="1" showassumed="1" errorcursor="false" longdelim="true" plotoptions="" quiet="false" elisiontermsafter="100" screenwidth="79" preplot="" prettyprint="3" displayprecision="-1" warnlevel="3" screenheight="25" latexwidth="6.0" postplot="" prompt="&gt; " ShowLabels="true"/>
<Styles><Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Author" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="true"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Code" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Inert Output" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[144,144,144]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Header and Footer" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 4" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Annotation Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
</Styles>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Task>
</Task>
<Group labelreference="L1" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Work along a Curve</Text-field>
<Text-field style="Text" layout="Normal">John Kirgis &amp; James Deck</Text-field>
<Text-field style="Text" layout="Normal">253 Honors Spring 2009</Text-field>
</Input>
</Group>
<Group labelreference="L47" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L48" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]): with(plots): with(plottools):with(VecCalc):VCalias:
StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L49" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L90" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:
lightcyan:=&quot;#DDFFFF&quot;:
lightblue:=&quot;#AAAAFF&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L87" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ColorFooter:=lightcyan:
FontFooter:=Font(&quot;helvetica&quot;,10):</Text-field>
</Input>
</Group>
<Group labelreference="L50" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randpow:=rand(-2..2):
randcase:=rand(1..3):
randt1:=rand(1..3):
dt:=rand(1..3):</Text-field>
</Input>
</Group>
<Group labelreference="L60" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ask:=proc()
global rt, Fxyz, curveplot, t1, t2, v, Ft, dotprod, I1, I2;
local case, p, q, l, m, d, e, a, b, c, f, r, n;
Set(TFv=&quot;&quot;);Set(TFv(background) = lightcyan);
Set(TFF=&quot;&quot;);Set(TFF(background) = lightcyan);
Set(TFdot=&quot;&quot;);Set(TFdot(background) = lightcyan);
Set(TFWI=&quot;&quot;);Set(TFWI(background) = lightcyan);
Set(TFW=&quot;&quot;);Set(TFW(background) = lightcyan);
case:=randcase();
if case=1 then
a:=1; b:=2; c:=2;
r:=randpow();
q:=randpow();
n:=randpow();
m:=randpow();
p:=randpow();
e:=randpow();
f:=randpow();
d:=(a-1)/(a*(c-1))*(a*p+b*q+c*r)-b*e+c*f;
l:=(a-1)/(a*(b-1))*(a*p+b*q+c*r)-b*m-c*n;
rt:=[t^a,t^b,t^c];
Fxyz:=[x^p*y^q*z^r,x^l*y^m*z^n,x^d*y^e*z^f];
elif case=2 then
a:=2; b:=1; c:=2;
p:=randpow();
r:=randpow();
l:=randpow();
m:=randpow();
d:=randpow();
n:=randpow();
f:=randpow();
q:=(b-1)/(b*(a-1))*(a*l+b*m+c*n)-c*p-c*r;
e:=(b-1)/(b*(c-1))*(a*l+b*m+c*n)-a*d-c*f;
rt:=[t^a,t^b,t^c];
Fxyz:=[x^p*y^q*z^r,x^l*y^m*z^n,x^d*y^e*z^f];
else #case=3
a:=2; b:=2; c:=1;
p:=randpow();
q:=randpow();
l:=randpow();
m:=randpow();
d:=randpow();
e:=randpow();
f:=randpow();
r:=(c-1)/(c*(a-1))*(a*d+b*e+c*f)-a*p-b*q;
n:=(c-1)/(c*(b-1))*(a*d+b*e+c*f)-a*l-b*m;
rt:=[t^a,t^b,t^c];
Fxyz:=[x^p*y^q*z^r,x^l*y^m*z^n,x^d*y^e*z^f];
end if;
t1:=randt1();
t2:=t1+dt();
Set(TFFxyz=Fxyz);
Set(TFrt=rt);
Set(TFt1=t1);
Set(TFt2=t2);
v:=diff(rt,t):
Ft:=eval(Fxyz,[x=rt[1],y=rt[2],z=rt[3]]):
dotprod:=expand(Dot(Ft,v));
I1:=Int(dotprod,t=t1..t2);
I2:=int(dotprod,t=t1..t2);
curveplot:=spacecurve(rt,t=t1..t2,axes=normal,color=blue,thickness=2, orientation=[30,75]);
Set(Pcurve=curveplot);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L98" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L66" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_v:=proc()
Set(reply=&quot; Take the derivative of r(t).  Use square brackets [ ].&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L67" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_v:=proc()
global v;
local userform_v;
userform_v:=Get(TFv::list):
if userform_v=v then
   Set(reply=&quot;Neato!&quot;),
   Set(TFv(background) = green)
else
   Set(reply=&quot;Oh, too bad.  Try again.&quot;),
   Set(TFv(background) = red)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L68" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_v:=proc()
global v;
Set(TFv=v);
Set(reply=&quot; Try for yourself next time.&quot;),
Set(TFv(background) = lightorange)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L69" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L73" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_F:=proc()
Set(reply=&quot; F(x,y,z)=F(x(t),y(t),z(t)).&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L72" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_F:=proc()
global Ft;
local userF;
userF:=Get(TFF::list):
if userF=Ft then
   Set(reply=&quot;Someone deserves a cookie!&quot;),
   Set(TFF(background) = green)
else
   Set(reply=&quot;Oh, too bad.  Try again.&quot;),
   Set(TFF(background) = red)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L71" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_F:=proc()
global Ft;
Set(TFF=Ft);
Set(reply=&quot; Try for yourself next time.&quot;),
Set(TFF(background) = lightorange)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L70" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L79" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_dot:=proc()
Set(reply=&quot; It's a scalar quantity.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L78" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_dot:=proc()
global dotprod,Ft,v;
local userform_dot;
userform_dot:=Get(TFdot::`+`):
if userform_dot=dotprod then
   Set(reply=&quot;Fantastic!&quot;),
   Set(TFdot(background) = green)
else
   Set(reply=&quot;Oh, too bad.  Try again.&quot;),
   Set(TFdot(background) = red)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L77" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_dot:=proc()
global dotprod;
Set(TFdot=dotprod);
Set(reply=&quot; Try for yourself next time.&quot;),
Set(TFdot(background) = lightorange)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L76" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L75" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_WI:=proc()
Set(reply=&quot; Just set up the integral, don't work it out yet. (Use Int, not int)&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L80" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_WI:=proc()
global I1,I2,dotprod,t1,t2;
local userWI;
userWI:=Get(TFWI::function):
if eval(userWI)-eval(I1)=0 then
   Set(reply=&quot;Super Duper!&quot;),
   Set(TFWI(background) = green)
else
   Set(reply=&quot;Oh, too bad.  Try again.&quot;),
   Set(TFWI(background) = red)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L81" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_WI:=proc()
global I1;
Set(TFWI=I1);
Set(reply=&quot; Try for yourself next time.&quot;),
Set(TFWI(background) = lightorange)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L94" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L93" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint_W:=proc()
Set(reply=&quot; Work out the integral.&quot;)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L92" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_W:=proc()
global I2;
local userW;
userW:=Get(TFW::realcons):
if userW=I2 then
   Set(reply=&quot;Alright!  I'd give you a high five, but I don't have fingers.&quot;),
   Set(TFW(background) = green)
else
   Set(reply=&quot;Oh, too bad.  Try again.&quot;),
   Set(TFW(background) = red)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L91" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_W:=proc()
global I2;
Set(TFW=I2);
Set(reply=&quot; Try for yourself next time.&quot;),
Set(TFW(background) = lightorange)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L74" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L82" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">WorkCurve:=Maplet(onstartup=RunWindow(MAIN),
Window[MAIN](title=&quot;Work Along A Curve&quot;,
[ halign=none, valign=none, inset=0,
  [ halign=none,
    Button(&quot;New Problem&quot;, Evaluate(function=&quot;ask&quot;), background=green),
    HorizontalGlue(),
    Button(&quot;Quit&quot;,Shutdown(), background=pink)
  ],
  BoxColumn( halign=none,border=true,
      caption=&quot;Problem Statement&quot;,
      [ &quot;Find the total work done by the force defined by the vector field F=&quot;,
        MathMLViewer[TFFxyz](width=200, height=60)
      ],
      [ &quot;along the curve r(t)=&quot;,
        MathMLViewer[TFrt](width=80, height=30),
        &quot;between t=&quot;,
        TextField[TFt1](width=3, editable=false, background=white),
        &quot;and&quot;,
        TextField[TFt2](width=3, editable=false, background=white),
        HorizontalGlue()
      ]
  ),
  [ [ border=true,
      caption=&quot;Plot&quot;,
      Plotter[Pcurve](&quot;&quot;, width=285, height=285)
    ],
    [
      [ halign=none, border=true,
        caption=&quot;Compute the velocity.&quot;,
        &quot;v = &quot;,
        HorizontalGlue(),
        TextField[TFv](width=15, background=lightcyan),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_v&quot;), background=yellow),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_v&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_v&quot;), background=lightorange)
      ],
      [ halign=none, border=true,
        caption=&quot;Parametrize the force F in terms of t.&quot;,
        &quot;F = &quot;,
        HorizontalGlue(),
        TextField[TFF](width=15, background=lightcyan),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_F&quot;), background=yellow),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_F&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_F&quot;), background=lightorange)
      ],
      [ halign=none, border=true,
        caption=&quot;Calculate the dot product of F and v.&quot;,
        &quot;F . v = &quot;,
        TextField[TFdot](width=15, background=lightcyan),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_dot&quot;), background=yellow),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_dot&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_dot&quot;), background=lightorange)
      ],
      [ halign=none, border=true,
        caption=&quot;Write out the integral for the work.&quot;,
        &quot;W = &quot;,
        HorizontalGlue(),
        TextField[TFWI](width=15, background=lightcyan),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_WI&quot;), background=yellow),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_WI&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_WI&quot;), background=lightorange)
      ],
      [ halign=none, border=true,
        caption=&quot;Compute the integral for the work.&quot;,
        &quot;W = &quot;,
        HorizontalGlue(),
        TextField[TFW](width=15, background=lightcyan),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint_W&quot;), background=yellow),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_W&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_W&quot;), background=lightorange)
      ]
    ]
  ],
  TextField[reply](width=40, editable=false, background=white),
  [ halign=none, background=ColorFooter,
    Label(&quot;Programmers: John Kirgis &amp; James Deck&quot;, font=FontFooter),
    HorizontalGlue(),
    Label(&quot;Copyright: P. Yasskin 2009&quot;, font=FontFooter)
  ]
])):</Text-field>
</Input>
</Group>
<Group labelreference="L84" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display](WorkCurve);</Text-field>
</Input>
</Group>
<Group labelreference="L100" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
