<?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="L2" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Andrew Garia &amp; Kelley Storey</Text-field>
<Text-field style="Text" layout="Normal">Math 252- Section 202</Text-field>
<Text-field style="Text" layout="Normal">Finding Taylor Polynomials</Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L238" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L235" 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="L206" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L239" 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="L240" 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="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">alias(e=exp(1)):</Text-field>
</Input>
</Group>
<Group labelreference="L207" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Funcs:=[exp(x), ln(x), ln(1+x), sin(x), cos(x), x^6, sin(2*x)]:</Text-field>
</Input>
</Group>
<Group labelreference="L208" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">centers:=[
 [0,1,2,-1,-2,3,-3,4,-4],
 [1,2,3,e, e^2, 1/2],
 [0, 1,2,3,e, 1/2, -1/2],
 [0, Pi, Pi/2, Pi/3, Pi/4, Pi/6],
 [0, Pi, Pi/2, Pi/3, Pi/4, Pi/6],
 [0,1,2,3,4,-1,-2,-3,-4],
 [0, Pi, Pi/2, Pi/3, Pi/4, Pi/6]
]:
randFuncs:=rand(1..nops(Funcs)):</Text-field>
</Input>
</Group>
<Group labelreference="L215" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L217" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">problem:=proc()
global func, func1, func2, func3, func4, func5, funca, func1a, func2a, func3a, func4a, func5a, val_a;
local whichFunc;
whichFunc:=randFuncs();
func:=Funcs[whichFunc];
val_a:=Generate(choose(centers[whichFunc]));

func1:=diff(func,x);
func2:=diff(func1,x);
func3:=diff(func2,x);
func4:=diff(func3,x);
func5:=diff(func4,x);

funca:=eval(func, x=val_a);
func1a:=eval(func1, x=val_a);
func2a:=eval(func2, x=val_a);
func3a:=eval(func3, x=val_a);
func4a:=eval(func4, x=val_a);
func5a:=eval(func5, x=val_a);

Set(MMLfn(value)=MathML[Export](f(x)=func));
Set(aequals=val_a);
Set(poly0=&quot;&quot;);
Set(poly1=&quot;&quot;);
Set(poly2=&quot;&quot;);
Set(poly3=&quot;&quot;);
Set(poly4=&quot;&quot;);
Set(poly5=&quot;&quot;);
Set(poly0a=&quot;&quot;);
Set(poly1a=&quot;&quot;);
Set(poly2a=&quot;&quot;);
Set(poly3a=&quot;&quot;);
Set(poly4a=&quot;&quot;);
Set(poly5a=&quot;&quot;);
Set(polyc0=&quot;&quot;);
Set(polyc1=&quot;&quot;);
Set(polyc2=&quot;&quot;);
Set(polyc3=&quot;&quot;);
Set(polyc4=&quot;&quot;);
Set(polyc5=&quot;&quot;);
Set(TF0=&quot;&quot;, TF0(background)=white);
Set(TF1=&quot;&quot;, TF1(background)=white);
Set(TF2=&quot;&quot;, TF2(background)=white);
Set(TF3=&quot;&quot;, TF3(background)=white);
Set(TF4=&quot;&quot;, TF4(background)=white);
Set(TF5=&quot;&quot;, TF5(background)=white);
Set(TF6=&quot;&quot;, TF6(background)=white);
Set(TFpoly=&quot;&quot;, TFpoly(background)=turquoise);
Set(reply=&quot;&quot;, reply(background)=white);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L236" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L219" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check0:=proc()
global func, funca;
local user_func, user_funca, user_c0;
if Get(poly0)=&quot;&quot; or Get(poly0a)=&quot;&quot; or Get(polyc0)=&quot;&quot; then
  Set(TF0=&quot;Blank&quot;);
  return;
end if;
user_func:=Get(poly0::anything):
if simplify(func - user_func)&lt;&gt;0 then
  Set(TF0=&quot;Incorrect&quot;, TF0(background)=red):
  Set(reply=&quot;The function is incorrect. Try again.&quot;, reply(background)=red):
  return;
end if;

user_funca:=Get(poly0a::anything):
if simplify(funca - user_funca)&lt;&gt;0 then
  Set(TF0=&quot;Incorrect&quot;, TF0(background)=red):
  Set(reply=&quot;Check the value of the function.&quot;, reply(background)=red):
  return;
end if;

user_c0:=Get(polyc0::anything):
if simplify(funca - user_c0)&lt;&gt;0 then
  Set(TF0=&quot;Incorrect&quot;, TF0(background)=red):
  Set(reply=&quot;The coefficient is incorrect.&quot;, reply(background)=red):
  return;
end if;

Set(TF0=&quot;Correct&quot;, TF0(background)=green):
Set(reply=&quot;Great job! Now on to the next step.&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L227" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check1:=proc()
global func1, func1a;
local user_func1, user_func1a, user_c1;
if Get(poly1)=&quot;&quot; or Get(poly1a)=&quot;&quot; or Get(polyc1)=&quot;&quot; then
  Set(TF1=&quot;Blank&quot;);
  return;
end if;
user_func1:=Get(poly1::anything):
if simplify(func1 - user_func1)&lt;&gt;0 then
  Set(TF1=&quot;Incorrect&quot;, TF1(background)=red):
  Set(reply=&quot;Check your derivative.&quot;, reply(background)=red):
  return;
end if;

user_func1a:=Get(poly1a::anything):
if simplify(func1a - user_func1a)&lt;&gt;0 then
  Set(TF1=&quot;Incorrect&quot;, TF1(background)=red):
  Set(reply=&quot;The value of the derivative is wrong. Try again!&quot;, reply(background)=red):
  return;
end if;

user_c1:=Get(polyc1::anything):
if simplify(func1a - user_c1)&lt;&gt;0 then
  Set(TF1=&quot;Incorrect&quot;, TF1(background)=red):
  Set(reply=&quot;Wrong coefficient. Give it another shot!&quot;, reply(background)=red):
  return;
end if;

Set(TF1=&quot;Correct&quot;, TF1(background)=green):
Set(reply=&quot;Awesome! Keep going!&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L228" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check2:=proc()
global func2, func2a;
local user_func2, user_func2a, user_c2;
if Get(poly2)=&quot;&quot; or Get(poly2a)=&quot;&quot; or Get(polyc2)=&quot;&quot; then
  Set(TF2=&quot;Blank&quot;);
  return;
end if;
user_func2:=Get(poly2::anything):
if simplify(func2 - user_func2)&lt;&gt;0 then
  Set(TF2=&quot;Incorrect&quot;, TF2(background)=red):
  Set(reply=&quot;Try computing that second derivative again.&quot;, reply(background)=red):
  return;
end if;

user_func2a:=Get(poly2a::anything):
if simplify(func2a - user_func2a)&lt;&gt;0 then
  Set(TF2=&quot;Incorrect&quot;, TF2(background)=red):
  Set(reply=&quot;The value of the function is incorrect.&quot;, reply(background)=red):
  return;
end if;

user_c2:=Get(polyc2::anything):
if simplify((func2a/2) - user_c2)&lt;&gt;0 then
  Set(TF2=&quot;Incorrect&quot;, TF2(background)=red):
  Set(reply=&quot;Try recomputing the coefficient.&quot;, reply(background)=red):
  return;
end if;

Set(TF2=&quot;Correct&quot;, TF2(background)=green):
Set(reply=&quot;You're the master!&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L229" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check3:=proc()
global func3, func3a;
local user_func3, user_func3a, user_c3;
if Get(poly3)=&quot;&quot; or Get(poly3a)=&quot;&quot; or Get(polyc3)=&quot;&quot; then
  Set(TF3=&quot;Blank&quot;);
  return;
end if;
user_func3:=Get(poly3::anything):
if simplify(func3 - user_func3)&lt;&gt;0 then
  Set(TF3=&quot;Incorrect&quot;, TF3(background)=red):
  Set(reply=&quot;The derivative is incorrect. Try recomputing it.&quot;, reply(background)=red):
  return;
end if;

user_func3a:=Get(poly3a::anything):
if simplify(func3a - user_func3a)&lt;&gt;0 then
  Set(TF3=&quot;Incorrect&quot;, TF3(background)=red):
  Set(reply=&quot;Check that value at a.&quot;, reply(background)=red):
  return;
end if;

user_c3:=Get(polyc3::anything):
if simplify((func3a/6) - user_c3)&lt;&gt;0 then
  Set(TF3=&quot;Incorrect&quot;, TF3(background)=red):
  Set(reply=&quot;Your coefficient is incorrect. Try it again&quot;, reply(background)=red):
  return;
end if;

Set(TF3=&quot;Correct&quot;, TF3(background)=green):
Set(reply=&quot;Correct! Now on to the next problem.&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L230" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check4:=proc()
global func4, func4a;
local user_func4, user_func4a, user_c4;
if Get(poly4)=&quot;&quot; or Get(poly4a)=&quot;&quot; or Get(polyc4)=&quot;&quot; then
  Set(TF4=&quot;Blank&quot;);
  return;
end if;
user_func4:=Get(poly4::anything):
if simplify(func4 - user_func4)&lt;&gt;0 then
  Set(TF4=&quot;Incorrect&quot;, TF4(background)=red):
  Set(reply=&quot;Sorry! Try solving for the derivative again.&quot;, reply(background)=red):
  return;
end if;

user_func4a:=Get(poly4a::anything):
if simplify(func4a - user_func4a)&lt;&gt;0 then
  Set(TF4=&quot;Incorrect&quot;, TF4(background)=red):
  Set(reply=&quot;The value of the function is incorrect. Give it another try.&quot;, reply(background)=red):
  return;
end if;

user_c4:=Get(polyc4::anything):
if simplify((func4a/24) - user_c4)&lt;&gt;0 then
  Set(TF4=&quot;Incorrect&quot;, TF4(background)=red):
  Set(reply=&quot;Close, but you have the wrong coefficient. Try one more time!&quot;, reply(background)=red):
  return;
end if;

Set(TF4=&quot;Correct&quot;, TF4(background)=green):
Set(reply=&quot;Great Job! You're almost done now.&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L231" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check5:=proc()
global func5, func5a;
local user_func5, user_func5a,user_c5;
if Get(poly5)=&quot;&quot; or Get(poly5a)=&quot;&quot; or Get(polyc5)=&quot;&quot; then
  Set(TF5=&quot;Blank&quot;);
  return;
end if;
user_func5:=Get(poly5::anything):
if simplify(func5 - user_func5)&lt;&gt;0 then
  Set(TF5=&quot;Incorrect&quot;, TF5(background)=red):
  Set(reply=&quot;You have the wrong 5th derivative. See if you can get it right this time!&quot;, reply(background)=red):
  return;
end if;

user_func5a:=Get(poly5a::anything):
if simplify(func5a - user_func5a)&lt;&gt;0 then
  Set(TF5=&quot;Incorrect&quot;, TF5(background)=red):
  Set(reply=&quot;Try finding the value of the function again.&quot;, reply(background)=red):
  return;
end if;

user_c5:=Get(polyc5::anything):
if simplify((func5a/120) - user_c5)&lt;&gt;0 then
  Set(TF5=&quot;Incorrect&quot;, TF5(background)=red):
  Set(reply=&quot;Give that coefficient one more try!&quot;, reply(background)=red):
  return;
end if;

Set(TF5=&quot;Correct&quot;, TF5(background)=green):
Set(reply=&quot;Oh snap! You've really got it now!&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L233" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check6:=proc()
global funca, func1a, func2a, func3a, func4a, func5a;
local user_func6;
if Get(TFpoly)=&quot;&quot; then
  Set(TF6=&quot;Blank&quot;);
  return;
end if;
user_func6:=Get(TFpoly::anything):
if simplify(funca+func1a*(x-val_a)+(func2a/2)*(x-val_a)^2+(func3a/6)*(x-val_a)^3+(func4a/24)*(x-val_a)^4   +(func5a/120)*(x-val_a)^5- user_func6)&lt;&gt;0 then
  Set(TF6=&quot;Incorrect&quot;, TF6(background)=red):
  Set(reply=&quot;Try again! You're so close!&quot;, reply(background)=red):
  return;
end if;

Set(TF6=&quot;Correct&quot;, TF6(background)=green):
Set(reply=&quot;Fantastic! You have found the Taylor polynomial!&quot;, reply(background)=green):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L221" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show0:=proc()
global func, funca;
  Set(poly0=func):
  Set(poly0a=funca):
  Set(polyc0=funca):
  Set(reply=&quot;See if you can get it yourself next time.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L222" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show1:=proc()
global func1, func1a;
  Set(poly1=func1):
  Set(poly1a=func1a):
  Set(polyc1=func1a):
  Set(reply=&quot;I helped you out on this one, but next time try it yourself.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L223" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show2:=proc()
global func2, func2a;
  Set(poly2=func2):
  Set(poly2a=func2a):
  Set(polyc2=(func2a/2)):
  Set(reply=&quot;This one we can just call practice. Try the next one on your own.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L224" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show3:=proc()
global func3, funca3;
  Set(poly3=func3):
  Set(poly3a=func3a):
  Set(polyc3=(func3a/6)):
  Set(reply=&quot;Alright, let's see what you can do by yourself next time.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L225" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show4:=proc()
global func4, func4a;
  Set(poly4=func4):
  Set(poly4a=func4a):
  Set(polyc4=(func4a/24)):
  Set(reply=&quot;Try the next one without my help.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L226" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show5:=proc()
global func5, func5a;
  Set(poly5=func5):
  Set(poly5a=func5a):
  Set(polyc5=(func5a/120)):
  Set(reply=&quot;See if you can get the next one on your own.&quot;, reply(background)=yellow):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L232" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show6:=proc()
global funca, func1a, func2a, func3a, func4a, func5a;
  Set(TFpoly=funca+func1a*(x-val_a)+(func2a/2)*(x-val_a)^2+(func3a/6)*(x-val_a)^3+(func4a/24)*(x-val_a)^4   +(func5a/120)*(x-val_a)^5):
  Set(reply=&quot;Next time see if you can get the polynomial by yourself.&quot;, reply(background)=yellow):
 end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L211" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">FindTaylorPoly:=Maplet(onstartup = RunWindow(MAIN),
Window[MAIN](title=&quot;Finding Taylor Polynomials&quot;,
[ halign=none, inset=0,
  [ Button(&quot;New Function&quot;, Evaluate(function=&quot;problem&quot;), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;, Shutdown(), background=pink)
  ],
  [ border=true,
    caption=&quot;Find the 5th degree Taylor polynomial for&quot;, 
    MathMLViewer[MMLfn](value = MathML[Export]('f'(x)=`...`), width=300, height=60),
    &quot;at a =&quot;,
    TextField[aequals](width=7, editable=false, background=white)
  ],
  BoxColumn( border=true,
    caption=&quot;Enter f(x) and its first 5 derivatives, their values at x=a and their corresponding coefficients in the Taylor polynomial.&quot;, 
    [ &quot;f (x)  =  &quot;,
      TextBox[poly0](width=30, height=2),
      &quot;f (a)  =  &quot;,
      TextField[poly0a](width=10),
      &quot;c0 =&quot;,
      TextField[polyc0](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check0&quot;), background=green),
      TextField[TF0](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show0&quot;), background=lightorange)
    ],
    [ &quot;f '(x)  =  &quot;,
      TextBox[poly1](width=30, height=2),
      &quot;f '(a)  =  &quot;,
      TextField[poly1a](width=10),
      &quot;c1 =&quot;,
      TextField[polyc1](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check1&quot;), background=green),
      TextField[TF1](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show1&quot;), background=lightorange)
    ],
    [ &quot;f ''(x)  = &quot;,
      TextBox[poly2](width=30, height=2),
      &quot;f ''(a)  = &quot;,
      TextField[poly2a](width=10),
      &quot;c2 =&quot;,
      TextField[polyc2](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check2&quot;), background=green),
      TextField[TF2](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show2&quot;), background=lightorange)
    ],
    [ &quot;f '''(x)  =&quot; ,
      TextBox[poly3](width=30, height=2),
      &quot;f '''(a)  = &quot;,
      TextField[poly3a](width=10),
      &quot;c3 =&quot;,
      TextField[polyc3](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check3&quot;), background=green),
      TextField[TF3](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show3&quot;), background=lightorange)
    ],
    [ &quot;f^4(x) =&quot;,
      TextBox[poly4](width=30, height=2),
      &quot;f^4(a) =&quot;,
      TextField[poly4a](width=10),
      &quot;c4 =&quot;,
     TextField[polyc4](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check4&quot;), background=green),
      TextField[TF4](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show4&quot;), background=lightorange)
    ],
    [ &quot;f^5(x) =&quot;,
      TextBox[poly5](width=30, height=2),
      &quot;f^5(a) =&quot;,
      TextField[poly5a](width=10),
      &quot;c5 =&quot;,
      TextField[polyc5](width=10),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check5&quot;), background=green),
      TextField[TF5](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show5&quot;), background=lightorange)
    ]
  ),
  BoxColumn( border=true,
    caption=&quot;Write out the Taylor polynomial.&quot;, 
    [ TextField[TFpoly](width=75, background=turquoise),
      HorizontalGlue(),
      Button(&quot;Check&quot;, Evaluate(function = &quot;check6&quot;), background=green),
      TextField[TF6](width=6, editable=false, background=white),
      Button(&quot;Show&quot;, Evaluate(function = &quot;show6&quot;), background=lightorange)
    ]
  ),
  [ TextField[reply](width=40, background=white)
  ],
  [ halign=none, background=ColorFooter,
    Label(&quot;Programmers: Andrew Garia &amp; Kelley Storey&quot;, font=FontFooter),
    HorizontalGlue(),
    Label(&quot;Copyright: P. Yasskin 2008&quot;, font=FontFooter)
  ]
]
)
):</Text-field>
</Input>
</Group>
<Group labelreference="L209" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display]( FindTaylorPoly );</Text-field>
</Input>
</Group>
<Group labelreference="L212" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
