<?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="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="10" 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="Left Justified 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="Help" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="9" subscript="false" superscript="false" underline="false"/>
<Font name="Help Variable" background="[255,255,255]" bold="false" executable="false" family="Monospaced" 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="[64,128,64]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false"/>
<Font name="Help Bold" 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="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="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Math Italic Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="1" 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="Help Nonterminal" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Default" 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 Comment" background="[255,255,255]" bold="true" executable="false" family="Monospaced" 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="2D Math Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" 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 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="Help Fixed" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Popup" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="Plot Title" background="[255,255,255]" bold="true" 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="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Copyright" 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="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 Bold Small" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" 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="Fixed Width" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" 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="10" 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="Heading 1" 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="Help Notes" 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="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="true"/>
<Font name="Help Underlined Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="2D Math Symbol 2" background="[255,255,255]" bold="false" executable="false" family="SymbolPi" foreground="[0,0,0]" italic="false" 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="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" 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="Monospaced" 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="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false"/>
<Font name="Plot Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" 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="Help Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Help Heading" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false"/>
<Font name="Output Labels" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" subscript="false" superscript="false" underline="false"/>
<Font name="Help 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="2D Comment" 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="Help Maple Name" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[104,64,92]" italic="false" opaque="false" readonly="false" size="12" 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="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="Help Emphasized" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Help Italic Bold" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Help Menus" 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="LaTeX" 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="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="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="Prompt" background="[255,255,255]" bold="true" executable="false" family="Monospaced" 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="Help Underlined" 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="true"/>
<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="10" 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="Help Underlined Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false"/>
<Font name="2D Math Bold" 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="2D Math Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" 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"/>
<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="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="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="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="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="_pstyle3" 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="Left Justified Maple Output" 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="Help" 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="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="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="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="_pstyle1" 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="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="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="R3 Font 0" 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="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"/>
<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="R3 Font 2" 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="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="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="_pstyle2" 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 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="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="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="Fixed Width" 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="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="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="_pstyle4" 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="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"/>
<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>
<Page-Numbers enabled="false" first-number="1" first-numbered-page="1" horizontal-location="right" style="Page Number" vertical-location="bottom"/>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Group labelreference="L2" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal">Joshua Brinsfield
Garrett Spears

Section 201 

Bisection Method of Solving Polynomials<Font style="Maple Input">
</Font></Text-field>
</Input>
</Group>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal">This Maplet allows the user to practice solving continuous functions (polynomials here) for specific roots.  The program creates randomized new polynomials of degree 3 to 5 via integrating a product of roots subtracted from x, and graphs the function over an interval* between randomized x[1] and x[2] (chosen so that no local maxima or minima exist on the interval between them, as these can throw off the process).  The user must (using the built-in calculator, if neccessary) calculate the x value (x[1] + x[2])/2  and the function's value at that x, fill them in, and choose whether to replace x[1] or x[2] with the new value in order to obtain a new interval containing the desired root.  The program checks, of course, for errors in this process.  When the user has performed this step several times, he/she may click &quot;Done&quot; and the program will evaluate his/her progress (total steps (replacements made), current f value, etc.) and display the current maximum error, telling the user whether he/she has achieved the desired level of precision or must continue the process.

*Actually, to give a fuller view of the function, the first graph the user sees upon asking for a new problem graphs the function over the interval larger by 20 on each side than this one.  IE, the interval from x[1]-20 to x[2]+20.

Programming note: Midpoints and y values at midpoints must be within .001 of the correct value; this flexibility is to allow decimal answers in all cases (although the exact answer is recalculated by the computer when the replacement is made).  Because of this, the required maximum error is always greater than .001.  Required error is determined by plugging in a required number of steps to get the exact answer into the error formula; the program currently randomizes this value to between 5 and 11 steps, inclusive.
</Text-field>
</Input>
</Group>
<Group labelreference="L4" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group labelreference="L5" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Tools]): with(Maplets[Elements]):
  with(RandomTools):</Text-field>
</Input>
</Group>
<Group labelreference="L6" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">StartEngine();</Text-field>
</Input>
</Group>
<Group labelreference="L7" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Input>
</Group>
<Group labelreference="L19" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Digits:=5:</Text-field>
</Input>
</Group>
<Group labelreference="L53" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:</Text-field>
</Input>
</Group>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L22" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">newGenf:=proc()
global NGXLoc, NGIOne, NGITwo, NGXOne, NGXTwo, NGFunc, NGFOne, NGFTwo, NGPrec, RHS, StepOK;
local randa, min1, max1, NGDegree, NGElevation, NGFor,
  someNum, someNum2, pad;
randa:=rand(-25..25);
min1:=randa();                   #first local min/max
   # (x1 and x2 are initialized with no local extrema between them)
randa:=rand(8..39);
max1:=min1 + randa();            #second local min/max
randa:=rand(min1+2..max1-2);
NGXLoc:=randa();                 #location of actual solution
randa:=rand(min1..NGXLoc-1);
NGIOne:=randa();                 #initial x1
randa:=rand(NGXLoc+1..max1);
NGITwo:=randa();                 #initial x2
#NGIOne,NGITwo:=op(sort([NGIOne,NGITwo]));
Set(iOne=NGIOne);
Set(iTwo=NGITwo);

randa:=rand(3..5);
NGDegree:=randa();               #degree of the polynomial
randa:=rand(-10..10);
NGElevation:=randa();            #constant added to final function
NGFunc:=(x - min1) * (x - max1);
for NGFor from 3 to NGDegree - 1 do
  randa:=rand(0..1);
  someNum2:=randa();
  if someNum2=0 then
    randa:=rand(round(min1 - round((NGDegree - 2)/10*(max1 - min1)))..min1);
    someNum:=randa();
  else
    randa:=rand(max1..round(max1 + round((NGDegree - 2)/10*(max1 - min1))));
    someNum:=randa();
  end if;
  NGFunc:=NGFunc * (x - someNum);
end do;
NGFunc:=sort(int(NGFunc, x) + NGElevation);
Set(func=NGFunc);
RHS:=evalf(subs(x=NGXLoc, NGFunc));
Set(TFRHS=RHS);

randa:=rand(2..5);               #Changed to require fewer iterations
NGPrec:=randa();                 #Number of steps required for correct error value
NGPrec:=10^(-ceil(log10(2^(NGPrec) / (NGITwo - NGIOne))));
Set(prec=NGPrec);

NGXOne,NGXTwo:=NGIOne,NGITwo;      #current x1 and x2
Set(xOne=NGXOne);
Set(xTwo=NGXTwo);
NGFOne:=evalf(subs(x=NGXOne, NGFunc));
NGFTwo:=evalf(subs(x=NGXTwo, NGFunc));
Set(fOne=NGFOne);
Set(fTwo=NGFTwo);
pad:=(NGXTwo-NGXOne)/20;
Set(pt1=plot([NGFunc,RHS], x=NGXOne-pad..NGXTwo+pad, color=[blue,green]));
Set(xMid=&quot;&quot;);
Set(fMid=&quot;&quot;);
Set(TFerror=&quot;&quot;);
Set(repXOne=false);
Set(repXTwo=false);
Set(reply=&quot;&quot;);
Set(CalcIn=&quot;&quot;);
Set(CalcOut=&quot;&quot;);
StepOK:=false;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L17" 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">CheckStep:=proc()
global NGXOne, NGXTwo, CurrXMid, NGFunc, CurrFMid, CurrError, StepOK;
local userXMid, userFMid, userError;
CurrXMid:=evalf((NGXOne+NGXTwo)/2);
CurrFMid:=evalf(subs(x=CurrXMid,NGFunc));
CurrError:=evalf((NGXTwo-NGXOne)/2);

if Get(xMid)=&quot;&quot; or Get(fMid)=&quot;&quot; or Get(TFerror)=&quot;&quot; then
  Set(reply=&quot; Please fill in  x_mid,  f(x_mid)  and  E.&quot;);
  StepOK:=false;
  return;
end if;

userXMid:=Get(xMid::realcons);
userFMid:=Get(fMid::realcons);
userError:=Get(TFerror::realcons);

if evalf(abs(userXMid-CurrXMid))&gt;.001*abs(CurrXMid) then
  Set(reply=&quot; x_mid is incorrect. Please fix it and check again.&quot;);
  StepOK:=false;
  return;
end if;

if evalf(abs(userFMid-CurrFMid))&gt;.001*abs(CurrFMid) then
  Set(reply=&quot; f(x_mid) is incorrect. Please fix it and check again.&quot;);
  StepOK:=false;
  return;
end if;

if evalf(abs(userError-CurrError))&gt;.001*abs(CurrError) then
  Set(reply=&quot; Your error is incorrect. Please fix it and check again.&quot;);
  StepOK:=false;
  return;
end if;

StepOK:=true;
Set(reply=&quot; Correct. Now decide if the error is small enough or replace one endpoint and repeat the process.&quot;);
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L5" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ShowStep:=proc()
global NGXOne, NGXTwo, CurrXMid, NGFunc, CurrFMid, CurrError;
CurrXMid:=evalf((NGXOne+NGXTwo)/2);
Set(xMid=CurrXMid);
CurrFMid:=evalf(subs(x=CurrXMid,NGFunc));
Set(fMid=CurrFMid);
CurrError:=evalf((NGXTwo-NGXOne)/2);
Set(TFerror=CurrError);
end proc:</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="L56" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">probDone:=proc()
global RHS, CurrXMid, CurrFMid, StepOK, CurrError, NGPrec;

CheckStep();
if not StepOK then
  Set(reply=&quot; x_mid or f(x_mid) or the error are incorrect. Please fix them and check again.&quot;);
  return;
end if;

if RHS=CurrFMid then
  Set(reply=sprintf(&quot; Since  f(x_mid) = %a, you have found the solution exactly (within the machine accuracy of 5 digits).  The solution is  x = %a.&quot;, RHS, CurrXMid));
  return;
end if;

if CurrError&lt;=NGPrec then
  Set(reply=sprintf(&quot; Correct! You win! The solution is  x = %a +/- %a.&quot;,
    CurrXMid, CurrError));
else
  Set(reply=&quot; You're on the right track, but your error isn't small enough.  Keep going!&quot;);
end if;
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L8" 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">repXVal:=proc()
global NGFunc, RHS, NGXOne, NGFOne, NGXTwo, NGFTwo, CurrXMid, CurrFMid, StepOK;
local pad;

CheckStep();
if not StepOK then
  Set(reply=&quot; x_mid or f(x_mid) or the error are incorrect. Please fix them and check again.&quot;);
  return;
end if;

if not Get(repXOne) and not Get(repXTwo) then
  Set(reply=&quot; You need to specify which endpoint to replace.&quot;);
  return;
end if;

if RHS=CurrFMid then
  Set(reply=sprintf(&quot; Since  f(x_mid) = %a, you have found the solution exactly (within the machine accuracy of 5 digits) and do not need to replace either endpoint.&quot;, RHS));
  Set(repXOne=false);
  Set(repXTwo=false);
  return;
elif (NGFOne&lt;RHS and RHS&lt;CurrFMid) or (NGFOne&gt;RHS and RHS&gt;CurrFMid) then #replace x2
  if Get(repXTwo) then
    Set(xTwo=CurrXMid);
    Set(fTwo=CurrFMid);
    NGXTwo:=CurrXMid;
    NGFTwo:=CurrFMid;
    Set(reply=&quot; OK, now repeat the process.&quot;);
  else
    Set(reply=sprintf(&quot; Don't replace that x!  %a is between f(x1) and f(x_mid).&quot;, RHS));
    return;
  end if;
elif (CurrFMid&lt;RHS and RHS&lt;NGFTwo) or (CurrFMid&gt;RHS and RHS&gt;NGFTwo) then #replace x1
  if Get(repXOne) then
    Set(xOne=CurrXMid);
    Set(fOne=CurrFMid);
    NGXOne:=CurrXMid;
    NGFOne:=CurrFMid;
    Set(reply=&quot; OK, now repeat the process.&quot;);
  else
    Set(reply=sprintf(&quot; Don't replace that x!  %a is between f(x_mid) and f(x2).&quot;, RHS));
    return;
  end if;
end if;

pad:=(NGXTwo-NGXOne)/20;
Set(pt1=plot([NGFunc,RHS], x=NGXOne-pad..NGXTwo+pad, color=[blue,green]));
Set(xMid=&quot;&quot;);
Set(fMid=&quot;&quot;);
Set(TFerror=&quot;&quot;);
Set(repXOne=false);
Set(repXTwo=false);
StepOK:=false;
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="L19" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">calcula:=proc()
  Set(CalcOut=evalf(Get(CalcIn::realcons)));
end proc:</Text-field>
</Input>
</Group>
<Group labelreference="L8" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">BiMeth:=Maplet(onstartup=RunWindow(MAIN),
Window[MAIN](title=&quot;Bisection Method of Solving Equations&quot;, defaultbutton=BCalc,
[ valign=none, halign=none, inset=0, spacing=0,
  [ halign=none,
    Button(&quot;Instructions&quot;, onclick=BiMethExplanation, background=lightorange),
    Button(&quot;New Problem&quot;, Evaluate(function=&quot;newGenf&quot;), background=magenta),
    HorizontalGlue(),
    Button(&quot;Quit&quot;, Shutdown(), background=pink)
  ],
  [ halign=none, inset=0, spacing=0,
    [ valign=none, halign=none, inset=0, spacing=0,
      BoxColumn( border=true,
        caption=&quot;Goal: Use the bisection method to solve the equation:&quot;,
        [ halign=none,
          &quot;f(x) = &quot;,
          TextField[func](editable=false, width=30, background=white),
          &quot; = &quot;,
          TextField[TFRHS](editable=false, width=10, background=white),
          HorizontalGlue()
        ],
        [ halign=none,
          &quot;to within E &lt;&quot;,
          TextField[prec](editable=false, width=5, background=white),
          &quot;on the interval  [&quot;,
          TextField[iOne](editable=false, width=5, background=white),
          &quot;,&quot;,
          TextField[iTwo](editable=false, width=5, background=white),
          &quot;].&quot;,
          HorizontalGlue()
        ]
      ),
      [ halign=none, border=true,
        caption=&quot;Current Endpoints and Function Values&quot;,
        &quot;x1 =&quot;,
        TextField[xOne](editable=false, width=5, background=white),
        &quot; f(x1) =&quot;,
        TextField[fOne](editable=false, width=10, background=white),
        HorizontalGlue(),
        &quot;x2 =&quot;,
        TextField[xTwo](editable=false, width=5, background=white),
        &quot; f(x2) =&quot;,
        TextField[fTwo](editable=false, width=10, background=white)
      ],
      BoxColumn( halign=none, border=true,
        caption=&quot;Find the Midpoint, Midpoint Value and the Error&quot;,
        [ halign=none, inset=0,
          &quot;x_mid =&quot;,
          TextField[xMid](width=5, background=turquoise),
          &quot;f(x_mid) =&quot;,
          TextField[fMid](width=10, background=turquoise),
          HorizontalGlue(),
          &quot;E = |x2-x1|/2 =&quot;,
          TextField[TFerror](width=10, background=turquoise)
        ],
        [ halign=none,
          HorizontalGlue(),
          Button[BCkStep](&quot;Check&quot;, Evaluate(function=&quot;CheckStep&quot;), background=green),
          HorizontalGlue(),
          Button[BShStep](&quot;Show&quot;, Evaluate(function=&quot;ShowStep&quot;), background=lightorange),
          HorizontalGlue()
        ]
      )
    ],
    [ border=true,
      caption=&quot;Plot&quot;,
      Plotter[pt1](plot(undefined, x=-1..1, y=-1..1), width=250, height=250)
    ]
  ],
  [ halign=none, inset=0, spacing=0,
    BoxRow( border=true,
      caption=&quot;Are you done?&quot;,
      HorizontalGlue(),
      Button(&quot;Done&quot;, Evaluate(function=&quot;probDone&quot;), background=green),
      HorizontalGlue()
    ),
    BoxRow( border=true,
      caption=&quot;If not, which endpoint should you replace?&quot;,
      HorizontalGlue(),
      RadioButton[repXOne](&quot;Replace x1&quot;, group=RBGroup, background=turquoise),
      RadioButton[repXTwo](&quot;Replace x2&quot;, group=RBGroup, background=turquoise),
      Button(&quot;Replace&quot;, Evaluate(function=&quot;repXVal&quot;), background=magenta),
      HorizontalGlue()
    )
  ],
  [ &quot;Reply:&quot;,
    TextBox[reply](editable=false, width=40, height=2)
  ],
  [ border=true, background=gold,
    &quot;Calculator:&quot;,
    TextBox[CalcIn](editable=true, width=40, height=2),
    Button[BCalc](&quot;Calculate&quot;, Evaluate(function=&quot;calcula&quot;), background=lightorange),
    TextField[CalcOut](editable=false, width=10, background=white)
  ],
  [ valign=none, halign=none, inset=0, spacing=0,
    &quot;Creators: Joshua Brinsfield and Garrett Spears&quot;,
    HorizontalGlue(),
<Font encoding="UTF-8">    &quot;\302\251  Copyright P. Yasskin 2007&quot;
</Font>  ]
]
),
Window[EXPL](title=&quot;Bisection Method - Instructions&quot;,
[ TextBox(width=80, height=14,
&quot; The Bisection Method is a method for finding roots of continuous functions
 (solving f(x)=y for a given y) by dividing an interval repeatedly in half.\n
 You will be given initial x1 and x2 values, endpoints on an interval where
 y is between f(x1) and f(x2).  You must repeatedly follow these steps:\n
 (1) Find the midpoint, x_mid, between x1 and x2 and f(x_mid).\n
 (2) Select whether to replace x1 or x2 with x_mid to create a new interval,
     keeping y is between f(x1) and f(x2).\n
 You should stop when the absolute error | x2 - x1 | / 2 is less than the
 specified value. Then click &quot;&quot;Done&quot;&quot; and do not replace an endpoint.&quot;),
 Button(&quot;Close&quot;, CloseWindow(EXPL), background=pink)
]
),
ButtonGroup[RBGroup](),
Action[BiMethExplanation](RunWindow(EXPL))
):</Text-field>
</Input>
</Group>
<Group labelreference="L13" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="Maple Input" input-equation="Maplets[Display](BiMeth); 1" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JlEoTWFwbGV0c0YnLyUnaXRhbGljR1EmZmFsc2VGJy8lLG1hdGh2YXJpYW50R1ElYm9sZEYnLyUrZm9udHdlaWdodEdGNC1JKG1mZW5jZWRHRiQ2Jy1GIzYjLUYsNiZRKERpc3BsYXlGJ0YvRjJGNS8lJWJvbGRHRjEvRjNRJ25vcm1hbEYnLyUlb3BlbkdRIltGJy8lJmNsb3NlR1EiXUYnLUY4NiUtRiM2Iy1GLDYmUSdCaU1ldGhGJ0YvRjJGNUY/RkEtSSNtb0dGJDYxUSI7RidGP0ZBLyUmZmVuY2VHRjEvJSpzZXBhcmF0b3JHUSV0cnVlRicvJSlzdHJldGNoeUdGMS8lKnN5bW1ldHJpY0dGMS8lKGxhcmdlb3BHRjEvJS5tb3ZhYmxlbGltaXRzR0YxLyUnYWNjZW50R0YxLyUlZm9ybUdRJmluZml4RicvJSdsc3BhY2VHUSQwZW1GJy8lJ3JzcGFjZUdRL3RoaWNrbWF0aHNwYWNlRicvJShtaW5zaXplR1EiMUYnLyUobWF4c2l6ZUdRKWluZmluaXR5Ric=">QyQtJkkoTWFwbGV0c0c2JEkoX3N5c2xpYkc2IiUqcHJvdGVjdGVkRzYjSShEaXNwbGF5R0YoNiNJJ0JpTWV0aEdGKCIiIg==</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L18" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Worksheet>
