<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="7" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>
<MapleNet-Properties warnlevel="3" longdelim="true" plotoptions="" echo="1" errorcursor="false" elisiontermsthreshold="10000" elisiontermsbefore="100" errorbreak="1" prettyprint="3" prompt="&gt; " latexwidth="6.0" useclientjvm="true" ansi="false" screenheight="25" labelwidth="20" plotdevice="inline" typesetting="standard" displayprecision="-1" indentamount="4" elisiondigitsthreshold="10000" quiet="false" plotoutput="terminal" rtablesize="10" preplot="" showassumed="0" plotdriver="openviz" elisiontermsafter="100" labelling="true" postplot="" screenwidth="79" elisiondigitsbefore="100" elisiondigitsafter="100" verboseproc="1" imaginaryunit="I" ShowLabels="true"/>
<Styles><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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<Font name="Page Number" 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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<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 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.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"/>
<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 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 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.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>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Vertical Asymptotes</Text-field>
<Text-field style="Text" layout="Normal">Sida Wang, Ryan Stawaisz</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="L2" 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="L13" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L15" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L12" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">great:=[</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Great Job!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Radical, Man!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Wow, You're a Genius!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Right On!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Sweet!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Awesome!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Way to go!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;All The Way!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Cool!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;I Wish I Was as Smart as You!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Holy Smokes! You're Right!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Get Your Nerd On!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Mad Skillz!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Who are You, John Nash?&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Who are You, Albert Einstein?&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;High Five!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Dang, You are Smart!&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Bam! Right on Target&quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Input>
</Group>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randgreat:=rand(1..nops(great)):</Text-field>
</Input>
</Group>
<Group labelreference="L5" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">sorry:=[</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Try Again.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Back to the Drawing Board.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;So Close, Yet So Far&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Double Check Your Answer.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Are You Sure that's Right?&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Is that Your Final Answer?&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;I Don't Think that's Right...&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Oops.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Missed by a Hair.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Let's recheck that.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Not Bad, but Not Good.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;You're not on your A Game.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Not Everyone can be Einstein...&quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Input>
</Group>
<Group labelreference="L6" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randsorry:=rand(1..nops(sorry)):</Text-field>
</Input>
</Group>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L7" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randroot:=rand(-9..9):
randcancel:=rand(0..5):
randexpon:=rand(0..4):
randt:=rand(0..1):</Text-field>
</Input>
</Group>
<Group labelreference="L6" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L4" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ask:=proc()
global func, factored, num, denomi, zeroes;
local a,b,c,d,e,p,q,r,s,t;
func:=1;
while func::realcons do
  a:=randroot();
  b:=randroot();
  c:=randroot();
  d:=randroot();
  a:=`if`(randcancel()&gt;1,c,a);
  b:=`if`(randcancel()&gt;1,d,b);
  p:=randexpon();
  q:=randexpon();
  r,s,t:=0,0,0;
  while r=0 and s=0 and t=0 do
    r:=randexpon();
    s:=randexpon();
    t:=randt();
  end do;
  p:=`if`(p&gt;1,1,p);
  q:=`if`(q&gt;1,1,q);
  r:=`if`(r&gt;1,1,r);
  s:=`if`(s&gt;1,1,s);
  num:=(x-a)^p*(x-b)^q;
  denomi:=x^t*(x-c)^r*(x-d)^s;
  func:=expand(num)/expand(denomi);
end do;
factored:=factor(func);
zeroes:={solve((denomi/num)=0)};
Set(MMLfn(value)=MathML[Export](func));
Set(TFfactored=&quot;&quot;);
Set(MMLfactored(value)=&quot;&quot;);
Set(TFzeroes=&quot;&quot;);
Set(CBnone=false);
Set(myplot=plot(0, x=-10..10, -25..25, color=black));
Set(reply=&quot;&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L12" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">preview_factored:=proc()
local user_factored;
user_factored:=Get(TFfactored::algebraic);
Set(MMLfactored(value)=MathML[Export](user_factored));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L8" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_factored:=proc()
global factored;
local user_factored;
user_factored:=Get(TFfactored::algebraic);
if user_factored=factored then
  Set(reply=great[randgreat()]);
else
  Set(reply=sorry[randsorry()]);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L9" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_factored:=proc()
global factored;
Set(TFfactored=factored);
Set(MMLfactored(value)=MathML[Export](factored));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L14" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L10" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check_zeroes:=proc()
global zeroes;
local user_zeroes, user_none;
user_zeroes:=Get(TFzeroes);
user_none:=Get(CBnone);
if (user_zeroes=&quot;&quot; and not user_none) or
   (user_zeroes&lt;&gt;&quot;&quot; and user_none) then
  Set(reply=&quot;Either enter the zeroes of check none, (not both).&quot;);
  return;
end if;
user_zeroes:={parse(user_zeroes)};
if not type(user_zeroes,set(integer)) then
  Set(reply=&quot;The zeroes should be integers. Try again.&quot;);
  return;
end if;
if user_none and zeroes={} or
   user_zeroes=zeroes then
  Set(reply=great[randgreat()]);
else
  Set(reply=sorry[randsorry()]);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show_zeroes:=proc()
global zeroes;
if zeroes={} then
  Set(CBnone=true);
  Set(TFzeroes=&quot;&quot;);
else
  Set(TFzeroes=convert(zeroes,string)[2..-2]);
  Set(CBnone=false);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L13" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plotfunc:=proc()
global func, zeroes;
local p1;
p1:=plot(func, x=-10..10, -25..25, discont=true, thickness=2, color=blue);
Set(myplot=p1)
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L9" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L12" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">VerticalAsymptotes:=Maplet(onstartup=RunWindow(MAIN),
Window[MAIN](title=&quot;Vertical Asymptotes&quot;,
[ halign=none, valign=none, inset=0, spacing=0,
  [ halign=none,
    Button(&quot;New Function&quot;, Evaluate (function=&quot;ask&quot;), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;, Shutdown(), background=pink)
  ],
  [ halign=none, valign=none, inset=0, spacing=0,
    [ halign=none, valign=none, inset=0, spacing=0,
      [ halign=none, border=true,
        caption=&quot;Find all vertical asymptotes of the function&quot;,
        &quot;f(x) =&quot;,
        MathMLViewer[MMLfn](width=200, height=75, background=white)
      ],
      BoxColumn( halign=none, valign=none, inset=0, spacing=0, border=true,
        caption=&quot;Factor the numerator and denominator and cancel any common factors&quot;,
        [ halign=none,
          &quot;f(x) =&quot;,
          TextField[TFfactored](width=20, background=turquoise),
          Button(&quot;Preview&quot;, Evaluate(function=&quot;preview_factored&quot;), background=lightorange),
          Button(&quot;Check&quot;, Evaluate(function=&quot;check_factored&quot;), background=green),
          Button(&quot;Show&quot;, Evaluate(function=&quot;show_factored&quot;), background=lightorange)
        ],
        [ halign=none,
          &quot;f(x) =&quot;,
          MathMLViewer[MMLfactored](width=200, height=75, background=white)
        ]
      ),
      [ border=true,
        caption=&quot;Find the zeroes of the denominator.&quot;,
        &quot;x = &quot;,
        TextField[TFzeroes](width=10, background=turquoise),
        CheckBox[CBnone](&quot;None&quot;),
        Button(&quot;Check&quot;, Evaluate(function=&quot;check_zeroes&quot;), background=green),
        Button(&quot;Show&quot;, Evaluate(function=&quot;show_zeroes&quot;), background=lightorange)
      ]
    ],
    [ halign=none, valign=none, border=true,
      caption=&quot;Plot&quot;,
      [ Plotter[myplot](width=250, height=250)
      ],
      [ Button(&quot;Plot It&quot;, Evaluate(function=&quot;plotfunc&quot;), background=tan)
      ]
    ]
  ],
  [TextField[reply](width=60, editable=false, background=white)
  ],
  [ halign=none, background=&quot;#DDFFFF&quot;, inset=0, spacing=0,
    &quot;Programmers: Sida Wang, Ryan Stawaisz&quot;, 
    HorizontalGlue(),
    &quot;@ Copyright: P. Yasskin 2007&quot;
  ]
]  
)
):</Text-field>
</Input>
</Group>
<Group labelreference="L14" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display]( VerticalAsymptotes );</Text-field>
</Input>
</Group>
<Group labelreference="L15" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
