<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="12" minor="1"/>
<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="L85" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Nicole Wanlass
Finding and Classifying Critical Points</Text-field>
</Input>
</Group>
<Group labelreference="L1" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group labelreference="L29" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]): with(RandomTools):
StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L82" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L86" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:
lightcyan:=&quot;#DDFFFF&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="L24" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">rand10:=rand(-10...10):</Text-field>
</Input>
</Group>
<Group labelreference="L81" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randcube:=rand(0...1):</Text-field>
</Input>
</Group>
<Group labelreference="L77" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randc:=rand(1...10):</Text-field>
</Input>
</Group>
<Group labelreference="L30" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newfunction:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local c,c1,d,f;
x1:=rand10();
x2:=rand10();
c:=randc();
c1:=Generate(choose({-1,1})):
d:=rand10();
cube:=randcube();
fp:=sort(expand(x^cube*c*c1*(x-x1)*(x-x2)));
f:=int(fp,x)+d;
if rand10=sprintf(&quot;%a&quot;,0) then
  Evaluate(function=&quot;newfunction&quot;);
else
  Set(ML1=f);
fpp:=diff(fp,x);
fpp0:=eval(fpp,x=0);
fpp1:=eval(fpp,x=x1);
fpp2:=eval(fpp,x=x2);
Set(TFfp=&quot;&quot;);
Set(TFfpp=&quot;&quot;);
Set(TFxs=&quot;&quot;);
Set(TFppa=&quot;&quot;);
Set(TFppa2=&quot;&quot;);
Set(TFa=&quot;&quot;);
Set(Radio1=false);
Set(Radio2=false);
Set(Radio3=false);
Set(reply=&quot;&quot;);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L45" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Checkfp:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local userfp, userfp2;
userfp:=Get(TFfp::polynom);
userfp2:=Get(TFfp);
if userfp=fp then
  Set(reply=&quot;Awesome job!  That's the correct derivative.&quot;);
else
  Set(reply=&quot;Sorry.  That's not the derivative.&quot;);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L46" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Showfp:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
Set(TFfp=fp);
Set(reply=&quot;Try to do it yourself next time.&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L38" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Checkfpp:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local userfpp;
userfpp:=Get(TFfpp::polynom);
if userfpp=fpp then
  Set(reply=&quot;Perfect!  That's the correct second derivative.&quot;);
else
  Set(reply=&quot;Sorry.  That's not the correct second derivative.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L39" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Showfpp:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
Set(TFfpp=fpp);
Set(reply=&quot;Try to do it yourself next time.&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L49" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Checkxs:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local userxs;
userxs:=Get(TFxs);
if userxs=sprintf(&quot;%a,%a&quot;,x1,x2) and cube=0 or
  userxs=sprintf(&quot;%a,%a&quot;,x2,x1) and cube=0 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,0,x1,x2) and cube=1 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,0,x2,x1) and cube=1 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,x1,0,x2) and cube=1 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,x1,x2,0) and cube=1 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,x2,0,x1) and cube=1 or
  userxs=sprintf(&quot;%a,%a,%a&quot;,x2,x1,0) and cube=1 then
    Set(reply=&quot;You've got it!  Those are the correct x's.&quot;);
else
  Set(reply=&quot;Sorry.  Those aren't the correct x's.&quot;)
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L41" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Showxs:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local pxs;
if cube=0 then
  pxs:=sprintf(&quot;%a,%a&quot;,x1,x2);
  Set(TFxs=pxs);
else
  pxs:=sprintf(&quot;%a,%a,%a&quot;,x1,x2,0);
  Set(TFxs=pxs);
Set(reply=&quot;Try to do it yourself next time.&quot;)
end if
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L55" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Critical1:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
Set(TFppa=x1);
Set(TFa=x1);
Set(TFppa2=&quot;&quot;);
Set(Radio1=false);
Set(Radio2=false);
Set(Radio3=false);
Set(reply=&quot;&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L56" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Critical2:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
Set(TFppa=x2);
Set(TFa=x2);
Set(TFppa2=&quot;&quot;);
Set(Radio1=false);
Set(Radio2=false);
Set(Radio3=false);
Set(reply=&quot;&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L57" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Critical3:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
if cube=1 then
  Set(TFppa=0);
  Set(TFa=0);
  Set(TFppa2=&quot;&quot;);
  Set(reply=&quot;&quot;);
else
  Set(TFppa=&quot;---&quot;);
  Set(TFa=&quot;---&quot;);
  Set(TFppa2=&quot;---&quot;);
  Set(reply=&quot;There is no third critical point for this function.&quot;);
end if;
Set(Radio1=false);
Set(Radio2=false);
Set(Radio3=false);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L66" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Checkfppa:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2,TFppaget;
local userppa;
TFppaget:=Get(TFppa);
userppa:=Get(TFppa2);
if TFppaget=sprintf(&quot;%a&quot;,x1) and userppa=sprintf(&quot;%a&quot;,fpp1) then
  Set(reply=&quot;Great!  That's the correct evaluation.&quot;);
elif TFppaget=sprintf(&quot;%a&quot;,x2) and userppa=sprintf(&quot;%a&quot;,fpp2) then
  Set(reply=&quot;Fabulous!  That's the correct evaluation.&quot;);
elif TFppaget=sprintf(&quot;%a&quot;,0) and userppa=sprintf(&quot;%a&quot;,fpp0) then
  Set(reply=&quot;Fantastic!  That's the correct evaluation.&quot;);
else
  Set(reply=&quot;Sorry.  That's not the correct evaluation.&quot;);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L59" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Showfppa:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local TFppaget;
TFppaget:=Get(TFppa);
if TFppaget=sprintf(&quot;%a&quot;,x1) then
  Set(TFppa2=fpp1);
elif TFppaget=sprintf(&quot;%a&quot;,x2) then
  Set(TFppa2=fpp2);
elif TFppaget=sprintf(&quot;%a&quot;,0) then
  Set(TFppa2=fpp0);
end if;
Set(reply=&quot;Try to do it yourself next time.&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L42" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">CheckClass:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local TFppaget;
TFppaget:=Get(TFppa);
if Get(Radio1)=true and TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1&gt;0 or
  Get(Radio2)=true and TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1&lt;0 or
  Get(Radio3)=true and TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1=0 then
    Set(reply=&quot;There you have it!  That's the correct classification.  Now try the next critical point.&quot;);
elif Get(Radio1)=true and TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&gt;0 and cube=1 or
  Get(Radio2)=true and TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&lt;0 and cube=1 or
  Get(Radio3)=true and TFppaget=sprintf(&quot;%a&quot;,x3) and fpp2=0 and cube=1 then
    Set(reply=&quot;Yes!  That's the correct classification.  Onto the next critical point.&quot;);
elif Get(Radio1)=true and TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&gt;0 and cube=0 or
  Get(Radio2)=true and TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&lt;0 and cube=0 or
  Get(Radio3)=true and TFppaget=sprintf(&quot;%a&quot;,x3) and fpp2=0 and cube=0 then
    Set(reply=&quot;Yes!  That's the correct classification.  Now try another problem.&quot;);
elif Get(Radio1)=true and TFppaget=sprintf(&quot;%a&quot;,0) and fpp0&gt;0 or
  Get(Radio2)=true and TFppaget=sprintf(&quot;%a&quot;,0) and fpp0&lt;0 or
  Get(Radio3)=true and TFppaget=sprintf(&quot;%a&quot;,0) and fpp0=0 then
    Set(reply=&quot;Wonderful!  That's the correct classification.  Now try another problem.&quot;);
else
  Set(reply=&quot;Sorry.  That's not the correct classification.&quot;);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L69" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ShowClass:=proc()
global x1,x2,cube,fp,fpp,fpp0,fpp1,fpp2;
local TFppaget;
TFppaget:=Get(TFppa);
if TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1&gt;0 or
  TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&gt;0 or
  TFppaget=sprintf(&quot;%a&quot;,0) and fpp0&gt;0 then
    Set(Radio1=true);
elif TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1&lt;0 or
  TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2&lt;0 or
  TFppaget=sprintf(&quot;%a&quot;,0) and fpp0&lt;0 then
    Set(Radio2=true);
elif TFppaget=sprintf(&quot;%a&quot;,x1) and fpp1=0 or
  TFppaget=sprintf(&quot;%a&quot;,x2) and fpp2=0 or
  TFppaget=sprintf(&quot;%a&quot;,0) and fpp0=0 then
    Set(Radio3=true);
end if;
Set(reply=&quot;Try to do it yourself next time.&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L8" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">CriticalPoints:= Maplet(onstartup=RunWindow(MAIN), 
Window[MAIN](title=&quot;Finding and Classifying Critical Points&quot;,
[
  [ halign=none,
    Button(&quot;New Function&quot;,Evaluate(function=&quot;newfunction&quot;),background=cyan),
    HorizontalGlue(),
    Label(&quot;f(x) = &quot;,font=Font(family=Helvetica,size=16)),
    MathMLViewer[ML1](width=200, height=60),
    HorizontalGlue(),
    Button(&quot;Quit&quot;,Shutdown(),background=pink)
  ], 
  [ halign=none,border=true,caption=&quot;Step 1: Find f ' (x).&quot;,
    Label(&quot;f ' (x) =  &quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFfp](width=40,editable=true),
    HorizontalGlue(),
    Button(&quot;Check&quot;,Evaluate(function=&quot;Checkfp&quot;),background=green),
    Button(&quot;Show&quot;,Evaluate(function=&quot;Showfp&quot;),background=yellow)
  ],
  [ halign=none,border=true,caption=&quot;Step 2: Find f '' (x).&quot;,
    Label(&quot;f '' (x) = &quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFfpp](width=40,editable=true),
    HorizontalGlue(),
    Button(&quot;Check&quot;,Evaluate(function=&quot;Checkfpp&quot;),background=green),
    Button(&quot;Show&quot;,Evaluate(function=&quot;Showfpp&quot;),background=yellow)
  ],
  [ halign=none,border=true,caption=&quot;Step 3: Set f ' (x) = 0 and solve for the x's.  Separate answers with commas.&quot;,
    Label(&quot;x =        &quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFxs](width=40,editable=true),
    HorizontalGlue(),
    Button(&quot;Check&quot;,Evaluate(function=&quot;Checkxs&quot;),background=green),
    Button(&quot;Show&quot;,Evaluate(function=&quot;Showxs&quot;),background=yellow)
  ],
  [ Button(&quot;Display First Critical Point&quot;,Evaluate(function=&quot;Critical1&quot;),background=cyan),
    Button(&quot;Display Second Critical Point&quot;,Evaluate(function=&quot;Critical2&quot;),background=cyan),
    Button(&quot;Display Third Critical Point&quot;,Evaluate(function=&quot;Critical3&quot;),background=cyan)
  ],
  [ halign=none,border=true,caption=&quot;Step 4(a): Evaluate f '' (x) at the given point.&quot;,
    Label(&quot;f '' (&quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFppa](width=2,editable=false),
    Label(&quot;) = &quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFppa2](width=5,editable=true),
    HorizontalGlue(),
    Button(&quot;Check&quot;,Evaluate(function=&quot;Checkfppa&quot;),background=green),
    Button(&quot;Show&quot;,Evaluate(function=&quot;Showfppa&quot;),background=yellow)
  ],
  [ halign=none,border=true,caption=&quot;Step 4(b): Use the Second Derivative Test to classify the critical point.&quot;,
    Label(&quot;x =&quot;,font=Font(family=Helvetica,size=16)),
    TextField[TFa](width=3,editable=false),
    RadioButton[Radio1](&quot;Local Min&quot;,value=false,group=RB1),
    RadioButton[Radio2](&quot;Local Max&quot;, value=false,group=RB1),
    RadioButton[Radio3](&quot;Test Fails&quot;, value=false,group=RB1),
    HorizontalGlue(),
    Button(&quot;Check&quot;,Evaluate(function=&quot;CheckClass&quot;),background=green),
    Button(&quot;Show&quot;,Evaluate(function=&quot;ShowClass&quot;),background=yellow)
  ],
  [ TextField[reply](width=50,halign=center,editable=false,background=turquoise)
  ],
  [ halign=none, background=ColorFooter,
    Label(&quot;Programmer: Nicole Wanlass&quot;, font=FontFooter),
    HorizontalGlue(),
    Label(&quot;Copyright: P. Yasskin 2008&quot;, font=FontFooter)
  ]
]
),
ButtonGroup[RB1]()
):</Text-field>
</Input>
</Group>
<Group labelreference="L26" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display](CriticalPoints);</Text-field>
</Input>
</Group>
<Group labelreference="L83" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
