<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="11" 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" 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="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="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="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="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="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="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="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="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" 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="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="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="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="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="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 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="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="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="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="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="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="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"/>
<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="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="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="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="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="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="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="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="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="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="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"/>
<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="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="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="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="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="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="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="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="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="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="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="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="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="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=""/>
<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="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="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="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="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="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="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="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="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=""/>
<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>
<Annotation-table>
    <Annotation-category name="&lt;default&gt;">
    </Annotation-category>
</Annotation-table>
<Task>
</Task>
<Group labelreference="L111" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Susan Vanderzyl, Rebecca Hollkamp</Text-field>
<Text-field style="Text" layout="Normal">Math 253- Section 200</Text-field>
<Text-field style="Text" layout="Normal">Taylor Polynomials</Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L180" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L200" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]): with(plots): with(plottools): with(RandomTools):
StartEngine();
randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L250" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L249" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">alias(e=exp(1)):</Text-field>
</Input>
</Group>
<Group labelreference="L195" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Funcs:=[exp(x), ln(x), ln(1+x), sin(x), cos(x)]:</Text-field>
</Input>
</Group>
<Group labelreference="L230" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">centers:=[
 [0,1,2,-1],
 [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]
]:</Text-field>
</Input>
</Group>
<Group labelreference="L241" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xinterval:=[
 -2..3,
 0..10,
 -1..10,
 -Pi/2..2*Pi,
 -Pi/2..2*Pi
]:</Text-field>
</Input>
</Group>
<Group labelreference="L231" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">yinterval:=[
 -2..25,
 -1..3,
 -1..4,
 -1.5..1.5,
 -1.5..1.5
]:</Text-field>
</Input>
</Group>
<Group labelreference="L242" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L181" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randFuncs:=rand(1..nops(Funcs)):</Text-field>
</Input>
</Group>
<Group labelreference="L184" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L190" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">problem:=proc()
global func, val_a, x_int, y_int, taylor_1, taylor_2, taylor_3, plotfunc, plotcenter;
local whichFunc;
whichFunc:=randFuncs();
func:=Funcs[whichFunc];
val_a:=Generate(choose(centers[whichFunc]));
x_int:=xinterval[whichFunc];
y_int:=yinterval[whichFunc];
Set(MMLfn(value)=MathML[Export](f(x)=func));
Set(aequals=val_a);
Set(poly1=&quot;&quot;);
Set(poly2=&quot;&quot;);
Set(poly3=&quot;&quot;);
Set(TF1=&quot;&quot;, TF1(background)=white);
Set(TF2=&quot;&quot;, TF2(background)=white);
Set(TF3=&quot;&quot;, TF3(background)=white);

taylor_1:=convert(taylor(func,x=val_a,2),polynom);
taylor_2:=convert(taylor(func,x=val_a,3),polynom);
taylor_3:=convert(taylor(func,x=val_a,4),polynom);
plotfunc:=plot(func, x=x_int, y=y_int, color=blue);
plotcenter:=plot([[val_a,eval(func,x=val_a)]], x=x_int, y=y_int, style=point, symbol=circle, symbolsize=20, color=red);
Set(PolyPlot=display(plotfunc,plotcenter));
Set(reply=&quot;&quot;, reply(background)=white);
end proc:</Text-field>
</Group>
<Group labelreference="L218" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L175" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check1:=proc()
global rand_a, taylor_1;
local user_1;
if Get(poly1)=&quot;&quot; then
  Set(TF1=&quot;Blank&quot;);
  return;
end if;
user_1:=Get(poly1::anything):
if simplify(taylor_1 - user_1)= 0 then
  Set(TF1=&quot;Correct&quot;, TF1(background)=green):
else
  Set(TF1=&quot;Incorrect&quot;, TF1(background)=red):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L216" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show1:=proc()
global taylor_1;
  Set(poly1=taylor_1):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L212" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint1:=proc()
Set(reply(value)=MathML[Export](f(a)+`f '`(a)*(x-a)));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L202" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"> plot1:=proc()
global Funcs, func, val_a, taylor_1, taylor_2, taylor_3, plot_t1;
plot_t1:=plot(taylor_1, x=x_int, y=y_int, color=green);
Set(PolyPlot=display(plotfunc,plotcenter,plot_t1));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L220" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L210" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check2:=proc()
global rand_a, taylor_2;
local user_2;
if Get(poly2)=&quot;&quot; then
  Set(TF2=&quot;Blank&quot;);
  return;
end if;
user_2:=Get(poly2::anything):
if simplify(taylor_2 - user_2)= 0 then
  Set(TF2=&quot;Correct&quot;, TF2(background)=green):
else
  Set(TF2=&quot;Incorrect&quot;, TF2(background)=red):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L213" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show2:=proc()
global taylor_2;
  Set(poly2=taylor_2):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L208" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint2:=proc()
Set(reply(value)=MathML[Export](f(a)+`f '`(a)*(x-a)+`f ''`(a)/2*(x-a)^2));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L243" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot2:=proc()
global Funcs, func, val_a, taylor_1, taylor_2, taylor_3, plot_t2;
plot_t2:=plot(taylor_2, x=x_int, y=y_int, color=orange);
Set(PolyPlot=display(plotfunc,plotcenter,plot_t2));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L239" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L211" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">check3:=proc()
global rand_a, taylor_3;
local user_3;
if Get(poly3)=&quot;&quot;then
  Set(TF3=&quot;Blank&quot;);
  return;
end if;
user_3:=Get(poly3::anything):
if simplify(taylor_3 - user_3=0) then
  Set(TF3=&quot;Correct&quot;, TF3(background)=green):
else
  Set(TF3=&quot;Incorrect&quot;, TF2(background)=red):
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L206" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">show3:=proc()
global taylor_3;
  Set(poly3=taylor_3):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L204" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">hint3:=proc()
Set(reply(value)=MathML[Export](f(a)+`f '`(a)*(x-a)+`f ''`(a)/2*(x-a)^2+`f '''`(a)/6*(x-a)^3));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L244" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot3:=proc()
global Funcs, func, val_a, taylor_1, taylor_2, taylor_3, plot_t3;
plot_t3:=plot(taylor_3, x=x_int, y=y_int, color=violet);
Set(PolyPlot=display(plotfunc,plotcenter,plot_t3));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L245" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUkjbWlHRiQ2I1EhRicvJStleGVjdXRhYmxlR1EmZmFsc2VGJy8lLG1hdGh2YXJpYW50R1Enbm9ybWFsRic=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYjLUkjbWlHRiQ2I1EhRic=</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L246" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">showall:=proc()
global taylor_1, taylor_2, taylor_3;
  Set(poly1=taylor_1):
  Set(poly2=taylor_2):
  Set(poly3=taylor_3):
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L247" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUkjbWlHRiQ2I1EhRicvJStleGVjdXRhYmxlR1EmZmFsc2VGJy8lLG1hdGh2YXJpYW50R1Enbm9ybWFsRic=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYjLUkjbWlHRiQ2I1EhRic=</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L248" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plotall:=proc()
global Funcs, func, val_a, taylor_1, taylor_2, taylor_3, plot_t1, plot_t2, plot_t3, plotfunc, plotcenter;
plot_t1:=plot(taylor_1, x=x_int, y=y_int, color=green);
plot_t2:=plot(taylor_2, x=x_int, y=y_int, color=orange);
plot_t3:=plot(taylor_3, x=x_int, y=y_int, color=violet);
Set(PolyPlot=display(plotfunc, plotcenter, plot_t1, plot_t2, plot_t3));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L192" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L88" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">TaylorP:=Maplet(onstartup = RunWindow(MAIN),
Font[helv10](&quot;helvetica&quot;,10),
Window[MAIN](title=&quot;Taylor Polynomials&quot;,
[ halign=none, inset=0,
  [ inset=0, [ [ Button(&quot;New Function&quot;, Evaluate(function=&quot;problem&quot;)),
        HorizontalGlue(),
        Button(&quot;Quit&quot;, Shutdown())
      ],
      BoxColumn( border=true,
        caption=&quot;Consider the Function:&quot;, 
        MathMLViewer[MMLfn](value = MathML[Export](f(x)), width=300)
      ),
      [ border=true,
        caption=&quot;Goal:&quot;,
        &quot;Find the Taylor polynomial approximations at a =&quot;,
        TextField[aequals](width=7, editable=false, background=white),
        HorizontalGlue()
      ]
    ],
    [ border=true,
      caption=&quot;Plot&quot;, 
      Plotter[PolyPlot](width=300, height=200)
    ]
  ],
  [ border=true,
    caption=&quot;1st Order:&quot;, 
    &quot;T1 =&quot;,
    TextBox[poly1](width=40, height=2),
    HorizontalGlue(),
    Button(&quot;Hint&quot;, Evaluate(function = &quot;hint1&quot;)),
    Button(&quot;Check&quot;, Evaluate(function = &quot;check1&quot;)),
    TextField[TF1](width=6, editable=false, background=white),
    Button(&quot;Show&quot;, Evaluate(function = &quot;show1&quot;)),
    Button(&quot;Plot&quot;, Evaluate(function = &quot;plot1&quot;))
  ],
  [ border=true,
    caption=&quot;2nd Order:&quot;,
    &quot;T2 =&quot;,
    TextBox[poly2](width=40, height=2),
    HorizontalGlue(),
    Button(&quot;Hint&quot;, Evaluate(function = &quot;hint2&quot;)),
    Button(&quot;Check&quot;, Evaluate(function = &quot;check2&quot;)),
    TextField[TF2](width=6, editable=false, background=white),
    Button(&quot;Show&quot;, Evaluate(function = &quot;show2&quot;)),
    Button(&quot;Plot&quot;, Evaluate(function = &quot;plot2&quot;))
  ],
  [ border=true,
    caption=&quot;3rd Order:&quot;,
    &quot;T3 =&quot;,
    TextBox[poly3](width=40, height=2),
    HorizontalGlue(),
    Button(&quot;Hint&quot;, Evaluate(function = &quot;hint3&quot;)),
    Button(&quot;Check&quot;, Evaluate(function = &quot;check3&quot;)),
    TextField[TF3](width=6, editable=false, background=white),
    Button(&quot;Show&quot;, Evaluate(function = &quot;show3&quot;)),
    Button(&quot;Plot&quot;, Evaluate(function = &quot;plot3&quot;))
  ],
  [ [ Button(&quot;Show All&quot;, Evaluate(function = &quot;showall&quot;)),
      Button(&quot;Plot All&quot;, Evaluate(function = &quot;plotall&quot;))
    ],
    MathMLViewer[reply](width=500, height=50, background=white)
  ],
  BoxRow( background=&quot;#DDFFFF&quot;, inset=0, spacing=0, 
    Label(&quot;Programmers: Susan Vanderzyl and Rebecca Hollkamp&quot;, font=helv10),
    HorizontalGlue(),
<Font encoding="UTF-8">    Label(&quot;\302\251 Copyright: P. Yasskin 2008&quot;, font=helv10)
</Font>  )
]
)
):</Text-field>
</Input>
</Group>
<Group labelreference="L103" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" linebreak="space" spaceabove="0" rightmargin="0" bullet="none" firstindent="0" bulletsuffix="" linespacing="0.0" pagebreak-before="false" leftmargin="0" alignment="left" initial="0" spacebelow="0">Maplets[Display]( TaylorP );</Text-field>
</Input>
</Group>
<Group labelreference="L240" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
