<?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="L201" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Maximum Volume of a Box under a Paraboloid</Text-field>
<Text-field style="Text" layout="Normal">Chris Standley &amp; Alexandru Raducanu</Text-field>
<Text-field style="Text" layout="Normal">253 Honors Spring 2009</Text-field>
</Input>
</Group>
<Group labelreference="L94" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group labelreference="L97" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]): with(plots):
StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L100" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L96" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L95" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">rand15:=rand(1..5):</Text-field>
</Input>
</Group>
<Group labelreference="L176" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">assume(a&lt;0,b&lt;0,c&lt;0);</Text-field>
</Input>
</Group>
<Group labelreference="L147" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">problem:=proc()
global vol, vol1, dx, dy, xsol, ysol, zsol, dxx, dyy, dxy, vol2, top;
local a, b, c, eq, xysol, testd, xmax, ymax, gr;
a:=rand15();
b:=rand15();
c:=rand15();
eq:= z = c - a*x^2 - b*y^2;
vol:=2*x*2*y*z;
vol1:=2*x*2*y*(c - a*x^2 - b*y^2);
dx:=expand(diff(vol1,x)); 
dy:=expand(diff(vol1,y)); 
xysol:=solve({ dx=0, dy=0, x &gt; 0, y &gt; 0}, {x,y});
   xsol:=subs(xysol,x);
   ysol:=subs(xysol,y);
   zsol:=subs(x=xsol,y=ysol,rhs(eq));
vol2:=simplify(4*xsol*ysol*zsol);
xmax:=ceil(sqrt(c/a));
ymax:=ceil(sqrt(c/b));
gr:=plot3d(rhs(eq),x=-xmax..xmax,y=-ymax..ymax, view=0..c, shading=zhue, transparency=0.8, scaling=constrained, axes=normal);
top:=plot3d(zsol,-xsol..xsol,-ysol..ysol,labels=[&quot;x axis&quot;, &quot;y axis&quot;, &quot;z axis&quot;], filled=true);
Set(MMLeq=eq);
Set(Graph=display(gr,top));
Set(TFvol=&quot;&quot;);
Set(TFdx=&quot;&quot;);
Set(TFdy=&quot;&quot;);
Set(TFxy=&quot;&quot;);
Set(TFvol2=&quot;&quot;);
Set(reply=&quot;&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L141" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint1:=proc()
Set(reply=&quot;The length and width of the box are not just x and y. Remember the other halves.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L133" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check1:=proc()
global vol1;
local user_vol;
if Get(TFvol)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_vol:=Get(TFvol::anything):
if simplify(vol1 - user_vol)=0 then
  Set(reply=&quot;Correct.&quot;):
else
  Set(reply=&quot;Incorrect.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L126" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show1:=proc()
global vol1;
Set(TFvol=vol1):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L185" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L127" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hintdx:=proc()
Set(reply=&quot;Remember to treat the y's as constants!&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L140" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">checkdx:=proc()
global dx;
local user_dx;
if Get(TFdx)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_dx:=Get(TFdx::anything):
if simplify(dx - user_dx)=0 then
  Set(reply=&quot;Good Job!&quot;):
else
  Set(reply=&quot;Not quite...&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L142" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">showdx:=proc()
global dx;
Set(TFdx=dx):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L196" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hintdy:=proc()
Set(reply=&quot;Remember to treat the x's as constants!&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L198" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">checkdy:=proc()
global dy;
local user_dy;
if Get(TFdy)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_dy:=Get(TFdy::anything):
if simplify(dy - user_dy)=0 then
  Set(reply=&quot;I oughta give you a cookie...but no milk yet! Get to solving!&quot;):
else
  Set(reply=&quot;Not quite...&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L197" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">showdy:=proc()
global dy;
Set(TFdy=dy):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L184" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L136" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hintxy:=proc()
Set(reply=&quot;Set each derivative equal to zero, and remember to get positive answers only.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L125" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">checkxy:=proc()
global xsol, ysol;
local user_xy, user_x, user_y;
if Get(TFxy)=&quot;&quot;then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_xy:=Get(TFxy::list, corrections=true, update=true):
user_x,user_y:=op(user_xy);
if simplify([xsol, ysol] - user_xy=[0,0]) then
  Set(reply=&quot;Congratulations! Keep going!&quot;):
elif  xsol-user_x =0  then
  Set(reply=&quot;Check your y value again.&quot;):
elif  ysol-user_y =0  then
  Set(reply=&quot;Check your x value again.&quot;):
else
  Set(reply=&quot;So close, yet so far. Try again.&quot;):
  return;
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L132" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">showxy:=proc()
global xsol, ysol;
Set(TFxy=[xsol, ysol]):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L130" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L181" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint5:=proc()
Set(reply=&quot;Remember it is not necessary to compute the value of z, you can find the volume with onle x and y.&quot;):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L179" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check5:=proc()
global vol2;
local user_vol2;
if Get(TFvol2)=&quot;&quot; then
  Set(reply=&quot;No answer given.&quot;);
  return;
end if;
user_vol2:=Get(TFvol2::anything):
if simplify(vol2 - user_vol2=0) then
  Set(reply=&quot;Yes sir you are right.&quot;):
else
  Set(reply=&quot;Nope. But close...I think.&quot;):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L182" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show5:=proc()
global vol2;
Set(TFvol2=vol2):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L178" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUkjbWlHRiQ2I1EhRicvJStleGVjdXRhYmxlR1EmZmFsc2VGJy8lLG1hdGh2YXJpYW50R1Enbm9ybWFsRic=">JSFH</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L143" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">MaxVolBox:=Maplet(onstartup=RunWindow(MAIN),
Font[helv10](&quot;helvetica&quot;,10),
Window[MAIN](title=&quot;Inscribed Box in a Paraboloid&quot;,
[ halign=none,
  [ Button(&quot;New Problem&quot;, Evaluate(function=problem), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;, Shutdown(), background=pink)
  ],
  [ border=true,
    &quot;Find the volume of the largest rectangular prism that can be inscribed in the paraboloid &quot;,
    MathMLViewer[MMLeq](width=150, height=45, background=white)
  ],
  [ inset=0,
    [ border=true,
      caption=&quot;Plot&quot;,
      Plotter[Graph](height=300,width=300)
    ],
    [ inset=0,
      [ border=true,
        caption=&quot;Enter the Volume of the Inscribed Prism as a function of x and y only:&quot;, 
        &quot;V =&quot;,
        TextField[TFvol](width=17, background=turquoise),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint1&quot;), background=lightorange),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check1&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show1&quot;), background=lightorange)
      ],
      [ border=true,
        caption=&quot;Find the derivative of the volume with respect to x.&quot;, 
        &quot;Vx =&quot;,
        TextField[TFdx](width=17, background=turquoise),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hintdx&quot;), background=lightorange),
        Button(&quot;Check&quot;, Evaluate(function=&quot;checkdx&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;showdx&quot;), background=lightorange)
      ],
      [ border=true,
        caption=&quot;Find the derivative of the volume with respect to y.&quot;, 
        &quot;Vy =&quot;,
        TextField[TFdy](width=17, background=turquoise),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hintdy&quot;), background=lightorange),
        Button(&quot;Check&quot;, Evaluate(function=&quot;checkdy&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;showdy&quot;), background=lightorange)
      ],
      [ border=true,
        caption=&quot;Solve for the critical point.&quot;, 
        &quot;[x,y] =&quot;,
        TextField[TFxy](width=17, background=turquoise),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hintxy&quot;), background=lightorange),
        Button(&quot;Check&quot;, Evaluate(function=&quot;checkxy&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;showxy&quot;), background=lightorange)
      ],
      [ border=true,
        caption=&quot;Compute the maximum volume.&quot;, 
        &quot;V =&quot;,
        TextField[TFvol2](width=17, background=turquoise),
        HorizontalGlue(),
        Button(&quot;Hint&quot;, Evaluate(function=&quot;hint5&quot;), background=lightorange),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check5&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show5&quot;), background=lightorange)
      ]
   ] ],
  [ halign=none,
    TextField[reply](width=65, editable=false, background=white)
  ],
  [ background=&quot;#DDFFFF&quot;, inset=0, spacing=0, 
    Label(&quot;Programmers: Chris Standley &amp; Alexandru Raducanu&quot;, font=helv10),
    HorizontalGlue(),
    Label(&quot;Copyright P. Yasskin 2009&quot;, font=helv10)
  ]
]
)
):</Text-field>
</Input>
</Group>
<Group labelreference="L145" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" alignment="left" firstindent="0" spacebelow="0" leftmargin="0" linespacing="0.0" initial="0" linebreak="space" rightmargin="0" bulletsuffix="" spaceabove="0" bullet="none" pagebreak-before="false">Maplets[Display]( MaxVolBox );</Text-field>
</Input>
</Group>
<Group labelreference="L199" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
