<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="7" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>
<MapleNet-Properties warnlevel="3" longdelim="true" plotoptions="" echo="1" errorcursor="false" elisiontermsthreshold="10000" elisiontermsbefore="100" errorbreak="1" prettyprint="3" prompt="&gt; " latexwidth="6.0" useclientjvm="true" ansi="false" screenheight="25" labelwidth="20" plotdevice="inline" typesetting="standard" displayprecision="-1" indentamount="4" elisiondigitsthreshold="10000" quiet="false" plotoutput="terminal" rtablesize="10" preplot="" showassumed="0" plotdriver="openviz" elisiontermsafter="100" labelling="true" postplot="" screenwidth="79" elisiondigitsbefore="100" elisiondigitsafter="100" verboseproc="1" imaginaryunit="I" ShowLabels="true"/>
<Styles><Font name="Heading 4" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="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="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16" subscript="false" superscript="false" underline="false"/>
<Font name="Page Number" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Annotation Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Inert Output" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[144,144,144]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false"/>
<Font name="Annotation Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true"/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Annotation Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0"/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0"/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1"/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
</Styles>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Group labelreference="L3" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Maplets[Elements]):with(Maplets[Tools]):</Text-field>
</Group>
<Group labelreference="L4" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">StartEngine();</Text-field>
</Group>
<Group labelreference="L5" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">lightorange:=&quot;#FFB300&quot;:</Text-field>
</Group>
<Group labelreference="L6" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randomize():</Text-field>
</Group>
<Group labelreference="L7" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">great := [</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Bullseye. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Right on the mark. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Great. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's absolutely right. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Awesome. You're unstoppable. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Correct. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; WOW, nailed that one. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You got it! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; YES! Right on. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Way to go. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Don't stop now. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; I knew you could do it! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Perfect. You're unstoppable. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Radical Dude. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Power house. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Sweet! Keep on Rockin'. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You rock! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You got those mad skills. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Awesome! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Wowzers! That was great! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Awesome man! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Good job! You really know what you are doing. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're awesome kid. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Tearing it up. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Right on the money. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; High Five!!!!! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Cool Beans. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; What a nerd! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're so money. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're a genious. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You hit the nail on the head. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Excellent! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; If I had a cookie, I'd give it to you. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're a winner. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's a winner. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Whoop! Way to go. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's the way, ah ha ah ha, I like it. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Oh yeah! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're the bomb! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That was fantastic! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Oh Snap! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's krunk! &quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Group>
<Group labelreference="L8" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randgreat := rand(1..nops(great)):</Text-field>
</Group>
<Group labelreference="L9" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">nextquest := [</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Keep it up.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Keep going.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;On to the next integral.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Try another integral.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Compute another integral.&quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Group>
<Group labelreference="L10" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randnext := rand(1..nops(nextquest)):</Text-field>
</Group>
<Group labelreference="L11" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">sorry := [</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Sorry, that's not right. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Nope, but don't give up. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Not quite, it's a little off. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Bummer, thought you would get it this time. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Close, but no cigar. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Slightly off. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; If you need help, please ask a human. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; I don't know where you went wrong. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Sorry, killer problem. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; No, but don't blow it off. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; D'oh! &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's whack. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Yikes! Really close. You'll get it next time. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Pucha! Thought you would get it this time. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Nice try, but your answer is wrong. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Ask your neighbor for help. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Brutal kid. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That won't fly. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; So close and yet so far. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; So, that was just practice. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Ooooh...close. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; A swing and a miss. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Better luck next time. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Oops. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Tilt. Play again. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; I know you can do better. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Sorry Charlie. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Better luck next time. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Tisk, tisk. It's a tough one. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; It takes a lot of wrongs to make a right. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Even Einstein didn't get everything right. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Oh man, you were so close. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Today's not your lucky day. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Don't quit your day job. &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; You're colder than a polar bear's toenail. &quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Group>
<Group labelreference="L12" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randsorry := rand(1..nops(sorry)):</Text-field>
</Group>
<Group labelreference="L13" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">tryagain := [</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Try the hint.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Fix your answer and check it again.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Give it another try.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Try again.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot;Please try again.&quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Group>
<Group labelreference="L14" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randtry := rand(1..nops(tryagain)):</Text-field>
</Group>
<Group labelreference="L15" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">showit := [</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; OK That's just practice. But try doing it yourself.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; That's fine for practice. Try doing it yourself.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Think about it and enter an answer yourself.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; Next time, compute an answer yourself.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&quot; So that was practice. Try doing it yourself.&quot;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]:</Text-field>
</Group>
<Group labelreference="L16" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randshow := rand(1..nops(showit)):</Text-field>
</Group>
<Group labelreference="L17" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L18" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">vars:= [x, t, theta, phi]:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dvars:=[dx, dt, dtheta, dphi]:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randvar:= rand(1..nops(vars)):</Text-field>
</Group>
<Group labelreference="L19" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L20" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">rand02:=rand(0..2):</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randcase:=rand(1..4):</Text-field>
</Group>
<Group labelreference="L21" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">As:=[0,Pi/6,Pi/4,Pi/3,Pi/2,2*Pi/3,3*Pi/4,5*Pi/6]:</Text-field>
</Group>
<Group labelreference="L22" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Bs:=[Pi/6,Pi/4,Pi/3,Pi/2,2*Pi/3,3*Pi/4,5*Pi/6,Pi]:</Text-field>
</Group>
<Group labelreference="L23" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randAs:=rand(1..nops(As)):</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">randBs:=rand(1..nops(Bs)):</Text-field>
</Group>
<Group labelreference="L25" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L26" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ChLim:=false:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LimsOK:=false:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">IndefOK:=false:</Text-field>
</Group>
<Group labelreference="L27" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L28" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">#case 1 sin^m=2p+1 odd, cos^n=2q even</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandx[1]:=sin(var)^m*cos(var)^n;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">usub[1]:=cos(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dusub[1]:=-sin(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandu[1]:=-(1-u^2)^p*u^n;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">#case 2 sin^m=2p even, cos^n=2q+1 odd</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandx[2]:=sin(var)^m*cos(var)^n;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">usub[2]:=sin(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dusub[2]:=cos(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandu[2]:=u^m*(1-u^2)^q;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">#case 3 sec^m=2p+1 odd tan^n=2q+1 odd</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandx[3]:=sec(var)^m*tan(var)^n;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">usub[3]:=sec(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dusub[3]:=sec(var)*tan(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandu[3]:=u^(m-1)*(u^2-1)^q;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">#case 4 sec^m=2p+2 even tan^n=2q even</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandx[4]:=sec(var)^m*tan(var)^n;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">usub[4]:=tan(var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dusub[4]:=sec(var)^2;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">integrandu[4]:=(1+u^2)^p*u^n;</Text-field>
</Group>
<Group labelreference="L29" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L30" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_Integral:= proc(DefParam)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">global vars, dvars, randvar, var, dvar, </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  rand02, randAs, randBs, p, q, m, n,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  integrandx, integrandu, usub, dusub,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  A, B, uA, uB, IntegDefx, IntegDefu, IntegDefux,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Integx, Integu, IntegValx, IntegValu, IntegDefVal,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  case, LimsOK, IndefOK, Def;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">local vari, usubi, outeri, OK;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">options `Copyright 2006, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">vari:=randvar();</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">var:= vars[vari];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dvar:= dvars[vari];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">case:=randcase();</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=rand02();</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">q:=rand02();</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">if case=1 then #sin^m=2p+1 odd, cos^n=2q even</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  m:=2*p+1;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  n:=2*q;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">elif case=2 then #sin^m=2p even, cos^n=2q+1 odd</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  m:=2*p;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  n:=2*q+1;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">elif case=3 then #case 3 sec^m=2p+1 odd tan^n=2q+1 odd</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  m:=2*p+1;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  n:=2*q+1;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">elif case=4 then #sec^m=2p+2 even tan^n=2q even</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  m:=2*p+2;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  n:=2*q;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Integx := Int( integrandx[case], var);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Integu := Int( integrandu[case], u);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">IntegValu := value(Integu) + C;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">IntegValx := eval(IntegValu,u=usub[case]);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Def:=DefParam;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LimsOK:=false:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">IndefOK:=false:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">if Def then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  A:=As[randAs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  B:=Bs[randBs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  while evalf(B)&lt;=evalf(A) do</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    B:=Bs[randBs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end do;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  while (case=3 or case=4) and (A=Pi/2 or B=Pi/2) do</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    A:=As[randAs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    B:=Bs[randBs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    while evalf(B)&lt;=evalf(A) do</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      B:=Bs[randBs()];</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    end do;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end do;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  IntegDefx:=Int(integrandx[case], var=A..B);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  uA:=eval(usub[case],var=A);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  uB:=eval(usub[case],var=B);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  IntegDefu := Int(integrandu[case], u=uA..uB);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  IntegDefux := Int(integrandu[case], u=(var=A)..B);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  IntegDefVal:=value(Eval(IntegValx, var=A..B));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(LCLvsSB(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(RBChLim(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(RBSubBk(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(LIntegDefVal(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('MMLint' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if ChLim then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LSumDef(caption)=&quot;Changing Limits&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef1' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef2' = MathML[Export](&quot;  &quot; = IntegDefu));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef3' = MathML[Export](&quot;  &quot; = Eval(IntegValu-C, u=uA..uB)));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LSumDef(caption)=&quot;Substituting Back&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef1' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef2' = MathML[Export](&quot;  &quot; = IntegDefux));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef3' = MathML[Export](&quot;  &quot; = Eval(IntegValx-C, var=A..B)));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('Lxb'(caption) = cat(&quot; &quot;, var, &quot; =&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFxb' = B);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFuB' = cat(&quot;g(&quot;, convert(B,string), &quot;)&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('Lxa'(caption) = cat(&quot; &quot;, var, &quot; =&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFxa' = A);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFuA' = cat(&quot;g(&quot;, convert(A,string), &quot;)&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegDefVal'(enabled)=true, 'TFIntegDefVal'(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BPreIntegDefVal(enabled)=true, BPreIntegDefVal(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BCkIntegDefVal(enabled)=true, BCkIntegDefVal(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('IntegDefValck'(enabled)=true, 'IntegDefValck'(background)=white, IntegDefValck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BShIntegDefVal(enabled)=true, BShIntegDefVal(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if  not Get('CBDef') then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLintdef' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLintindef' = MathML[Export](&quot; I&quot; = Integx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(ADEFintro(run)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(RBSubBk=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ChLimSubBk();</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(LCLvsSB(enabled)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(RBChLim(enabled)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(RBSubBk(enabled)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(LIntegDefVal(enabled)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('MMLint' = MathML[Export](&quot; I&quot; = Integx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegDefVal'(enabled)=false, 'TFIntegDefVal'(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BPreIntegDefVal(enabled)=false, BPreIntegDefVal(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BCkIntegDefVal(enabled)=false, BCkIntegDefVal(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('IntegDefValck'(enabled)=false, IntegDefValck(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(BShIntegDefVal(enabled)=false, BShIntegDefVal(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFu' = cat(&quot;g(&quot;, var, &quot;)&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFdu' = cat(&quot;g ' (&quot;, var, &quot;) * d&quot;, var));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('uduck' = &quot;&quot;, 'uduck'(background)=white, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFIntegu' = &quot;&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('Integuck' = &quot;&quot;, 'Integuck'(background)=white, Integuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFIntegValu' = &quot;&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('IntegValuck' = &quot;&quot;, 'IntegValuck'(background)=white, IntegValuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFIntegValx' = &quot;&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('IntegValxck' = &quot;&quot;, 'IntegValxck'(background)=white, IntegValxck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('ChLimck' = &quot;&quot;, 'ChLimck'(background)=white, ChLimck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BSumDef(enabled)=false, BSumDef(background)=wheat);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('TFIntegDefVal' = &quot;&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('IntegDefValck' = &quot;&quot;, 'IntegDefValck'(background)=white, IntegDefValck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('reply' = &quot;&quot;, reply(background)=white, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set('MMLHINTSub' = MathML[Export](Integx='A'*Int(f(u),u)));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(LHINTSubU(caption)=cat(&quot;So pick u=g(&quot;, var, &quot;) so that &quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(LHINTSubdU(caption)=cat(&quot;Be sure to multiply by &quot;, dvar, &quot; in your formula for du.&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(TFSYNTAX=cat(&quot;sin(&quot;,var,&quot;)^n&quot;));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(MMLSYNTAX(value)=MathML[Export](sin(var)^'n'));  #?????</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(Budush(enabled)=true, Buduck(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(Budush(background)=turquoise, Buduck(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BIntegush(enabled)=true, BIntegupr(enabled)=true, BInteguck(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BIntegush(background)=turquoise, BIntegupr(background)=turquoise, BInteguck(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BIntegValush(enabled)=true, BIntegValupr(enabled)=true, BIntegValuck(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BIntegValush(background)=turquoise, BIntegValupr(background)=turquoise, BIntegValuck(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BShIntegValx(enabled)=true, BPreIntegValx(enabled)=true, BCkIntegValx(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BShIntegValx(background)=turquoise, BPreIntegValx(background)=turquoise, BCkIntegValx(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BShChLim(enabled)=true, BCkChLim(enabled)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Set(BShChLim(background)=turquoise, BCkChLim(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L31" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L32" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_udu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global var, dvar, usub, dusub, case;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_usub, user_dusub;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_usub:= Get('TFu'::algebraic, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_dusub:= Get('TFdu'::algebraic, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(usub[case] - user_usub)) = 0 and simplify(normal(dusub[case]*dvar - user_dusub)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot; correct &quot;, 'uduck'(background)=green, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = great[randgreat()], reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(usub[case] - user_usub)) = 0 and simplify(normal(dusub[case] - user_dusub)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot; warning &quot;, 'uduck'(background)=yellow, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(&quot;In your formula for du you forgot to multiply by &quot;, dvar, &quot;.&quot;),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(usub[case] - user_usub)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot;incorrect&quot;, 'uduck'(background)=red, uduck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;There is an error in your formula for du. &quot;, reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(diff(user_usub,var)*dvar - user_dusub)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot; warning &quot;, 'uduck'(background)=yellow, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;You did not pick u the way I expected but you did compute its differential correctly. Try taking u as a different trig function.&quot;, reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(diff(user_usub,var) - user_dusub)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot; warning &quot;, 'uduck'(background)=yellow, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(&quot;You did not pick u the way I expected but you did compute its differential correctly except that you forgot the &quot;, dvar, &quot;. Try taking u as a different trig function.&quot;), reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('uduck' = &quot; warning &quot;, 'uduck'(background)=yellow, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;You did not pick u the way I expected. Try taking u as the whole inner function.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L33" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_udu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global dvar, usub, dusub, case;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFu' = usub[case]);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFdu' = dusub[case] * dvar);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('uduck' = &quot; &quot;, 'uduck'(background)=white, uduck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L34" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L35" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_Integu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global Integu, InteguWrong;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_Integu;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_Integu:= Get('TFIntegu'::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(Integu - user_Integu)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('Integuck' = &quot; correct &quot;, 'Integuck'(background)=green, Integuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = great[randgreat()], reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(InteguWrong - user_Integu)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('Integuck' = &quot;incorrect&quot;, 'Integuck'(background)=red, Integuck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(&quot;You seem to have made a mistake in substituting for the differential. &quot;, tryagain[randtry()]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('Integuck' = &quot;incorrect&quot;, 'Integuck'(background)=red, Integuck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(sorry[randsorry()], tryagain[randtry()]), reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L36" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_Integu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global Integu;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegu' = Integu);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('Integuck' = &quot; &quot;, 'Integuck'(background)=white, Integuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L37" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L38" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_IntegValu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegValu, LimsOK, IndefOK;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_IntegValu;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_IntegValu:= Get('TFIntegValu'::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(IntegValu - user_IntegValu)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValuck' = &quot; correct &quot;, 'IntegValuck'(background)=green, IntegValuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = great[randgreat()], reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    IndefOK:=true:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    if LimsOK then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Set(BSumDef(enabled)=true, BSumDef(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(IntegValu - user_IntegValu-C)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValuck' = &quot; warning &quot;, 'IntegValuck'(background)=yellow, IntegValuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(&quot;You forgot to add C to the indefinite integral.&quot;),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValuck' = &quot;incorrect&quot;, 'IntegValuck'(background)=red, IntegValuck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(sorry[randsorry()], tryagain[randtry()]), reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L39" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_IntegValu:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegValu;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegValu' = IntegValu);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('IntegValuck' = &quot; &quot;, 'IntegValuck'(background)=white, IntegValuck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L40" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L41" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_ChLim:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global var, A, B, uA, uB, LimsOK, IndefOK;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_uA, user_uB;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_uA:= Get('TFuA'::realcons, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_uB:= Get('TFuB'::realcons, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(uA - user_uA)) = 0 and simplify(normal(uB - user_uB)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('ChLimck' = &quot; correct &quot;, 'ChLimck'(background)=green, ChLimck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = great[randgreat()], reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    LimsOK:=true:</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    if IndefOK then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Set(BSumDef(enabled)=true, BSumDef(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(uA - user_uA)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('ChLimck' = &quot;incorrect&quot;, 'ChLimck'(background)=red, ChLimck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;There is an error in the value of u at the upper limit.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(uB - user_uB)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('ChLimck' = &quot;incorrect&quot;, 'ChLimck'(background)=red, ChLimck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;There is an error in the value of u at the lower limit.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('ChLimck' = &quot;incorrect&quot;, 'ChLimck'(background)=red, ChLimck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;There are errors in the values of u at both limits.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L42" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_ChLim:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global uA, uB;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFuA' = uA);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFuB' = uB);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('ChLimck' = &quot; &quot;, 'ChLimck'(background)=white, ChLimck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L43" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L44" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_IntegValx:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegValx, Def;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_IntegValx;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_IntegValx:= Get('TFIntegValx'::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(IntegValx - user_IntegValx)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValxck' = &quot; correct &quot;, 'IntegValxck'(background)=green, IntegValxck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    if Def then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Set(BSumDef(enabled)=true, BSumDef(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Set('reply' = great[randgreat()], reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Set('reply' = cat(great[randgreat()], nextquest[randnext()]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(IntegValx - user_IntegValx-C)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValxck' = &quot; warning &quot;, 'IntegValxck'(background)=yellow, IntegValxck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;You forgot to add C to the indefinite integral.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegValxck' = &quot;incorrect&quot;, 'IntegValxck'(background)=red, IntegValxck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(sorry[randsorry()], tryagain[randtry()]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L47" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_IntegValx:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegValx;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegValx' = IntegValx);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('IntegValxck' = &quot; &quot;, 'IntegValxck'(background)=white, IntegValxck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L46" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L45" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Check_IntegDefVal:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegDefVal;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local user_IntegDefVal;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  user_IntegDefVal:= Get('TFIntegDefVal'::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if simplify(normal(IntegDefVal - user_IntegDefVal)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegDefValck' = &quot; correct &quot;, 'IntegDefValck'(background)=green, IntegDefValck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(great[randgreat()], nextquest[randnext()]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=green, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(IntegDefVal+C - user_IntegDefVal)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegDefValck' = &quot; warning &quot;, 'IntegDefValck'(background)=yellow, IntegDefValck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;You should not have a +C in a definite integral.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=yellow, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  elif simplify(normal(IntegDefVal + user_IntegDefVal)) = 0 then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegDefValck' = &quot;incorrect&quot;, 'IntegDefValck'(background)=red, IntegDefValck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = &quot;Recall, a definite integral is computed by evaluating the antiderivative at the upper limit minus the lower limit. You got them backwards.&quot;, reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('IntegDefValck' = &quot;incorrect&quot;, 'IntegDefValck'(background)=red, IntegDefValck(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply' = cat(sorry[randsorry()], tryagain[randtry()]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      reply(background)=red, reply(foreground)=white);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L48" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Show_IntegDefVal:= proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global IntegDefVal;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('TFIntegDefVal' = IntegDefVal, 'TFIntegDefVal'(background)=turquoise);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('IntegDefValck' = &quot; &quot;, 'IntegDefValck'(background)=white, IntegDefValck(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('reply' = showit[randshow()], 'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L49" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L50" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Preview:=proc(TFname)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local expr;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global CurrentTFname;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  CurrentTFname := TFname;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if Get(TFname)=&quot;&quot; then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('reply'=&quot;You must enter an expression to be previewed.&quot;, </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      'reply'(background)=lightorange, reply(foreground)=black);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    expr:=Get(TFname::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('TFPreview' = expr);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLPreview' = MathML[Export](expr));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('ARunPreview'(run)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L51" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Update_Preview:=proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  local expr;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global CurrentTFname;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  expr:=Get(TFPreview::anything, corrections=true, update=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set('MMLPreview' = MathML[Export](expr));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Set(CurrentTFname = expr);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L52" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L53" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ChLimSubBk:=proc()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  global ChLim;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  options `Copyright 2005, Philip B. Yasskin, Texas A&amp;M Univ.`;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ChLim:=Get(RBChLim);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  if ChLim then</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LIntegValx(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFIntegValx(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BPreIntegValx(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BCkIntegValx(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(IntegValxck(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BShIntegValx(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LChLim(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(Lxb(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFxb(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LuB(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFuB(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(Lxa(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFxa(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LuA(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFuA(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BCkChLim(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(ChLimck(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BShChLim(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LSumDef(caption)=&quot;Changing Limits&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef1' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef2' = MathML[Export](&quot;  &quot; = IntegDefu));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef3' = MathML[Export](&quot;  &quot; = Eval(IntegValu-C, u=uA..uB)));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  else</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LIntegValx(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFIntegValx(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BPreIntegValx(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BCkIntegValx(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(IntegValxck(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BShIntegValx(visible)=true);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LChLim(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(Lxb(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFxb(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LuB(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFuB(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(Lxa(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFxa(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LuA(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(TFuA(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BCkChLim(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(ChLimck(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(BShChLim(visible)=false);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set(LSumDef(caption)=&quot;Substituting Back&quot;);</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef1' = MathML[Export](&quot; J&quot; = IntegDefx));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef2' = MathML[Export](&quot;  &quot; = IntegDefux));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Set('MMLsumdef3' = MathML[Export](&quot;  &quot; = Eval(IntegValx-C, var=A..B)));</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  end if;</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">end proc:</Text-field>
</Group>
<Group labelreference="L54" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Group>
<Group labelreference="L55" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">TrigIntegrals := Maplet(onstartup = RunWindow(MAIN),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Font[helv10](&quot;helvetica&quot;,10),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Window[MAIN]( 'title'=&quot;Trigonometric Integrals&quot;, 'defaultbutton'='Hint', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">[ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button(&quot;Indefinite Integral&quot;, Evaluate('function' = &quot;Show_Integral(false)&quot;), background=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button(&quot; Definite Integral &quot;, Evaluate('function' = &quot;Show_Integral(true)&quot;), background=turquoise)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      VerticalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Use a substitution           &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;     to compute the integral:&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      VerticalGlue()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    MathMLViewer[MMLint]('value'=MathML[Export](&quot; I&quot; = Int(F(x),x)), 'width'=300, 'height'=100),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        Button(&quot;Quit&quot;, Shutdown(), background=pink),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        Button['Hint'](&quot;Hint&quot;, RunWindow(HINTSub), background=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        Button(&quot;Syntax&quot;, RunWindow(SYNTAX), background=turquoise)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  BoxColumn('background'=wheat, 'inset'=0, 'spacing'=0, 'border'=true,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    'caption'=&quot;Step 1 - Define the substitution:&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;u =&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFu'](&quot;g(x)&quot;, 'width'=20, 'background'=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;  du =&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFdu'](&quot;g ' (x) * dx&quot;, 'width'=20, 'background'=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[Buduck](&quot;Check&quot;, Evaluate('function' = &quot;Check_udu&quot;), background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['uduck']('width'=6, editable=false, background=white),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[Budush](&quot;Show&quot;, Evaluate('function' = &quot;Show_udu&quot;), background=wheat, enabled=false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  BoxColumn('background'=wheat, 'inset'=0, 'spacing'=0, 'border'=true,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    'caption'=&quot;Step 2 - Rewrite and evaluate the indefinite integral after applying the proper trigonometric identities.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Substitute u into the indefinite integral:   I =&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFIntegu']('width'=30, 'background'=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BIntegupr](&quot;Preview&quot;, onclick=APreSub, background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BInteguck](&quot;Check&quot;, Evaluate('function' = &quot;Check_Integu&quot;), background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['Integuck']('width'=6, editable=false, background=white),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BIntegush](&quot;Show&quot;, Evaluate('function' = &quot;Show_Integu&quot;), background=wheat, enabled=false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Compute the indefinite u-integral:     I =&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFIntegValu']('width'=30, 'background'=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BIntegValupr](&quot;Preview&quot;, onclick=APreIndef, background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BIntegValuck](&quot;Check&quot;, Evaluate('function' = &quot;Check_IntegValu&quot;), background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['IntegValuck']('width'=6, editable=false, background=white), background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BIntegValush](&quot;Show&quot;, Evaluate('function' = &quot;Show_IntegValu&quot;), background=wheat, enabled=false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  BoxColumn('background'=wheat, 'inset'=0, 'spacing'=0, 'border'=true,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    'caption'=&quot;Step 3 - Rewrite the integral in terms of the original variable (or find new limits if appropriate).&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LCLvsSB](&quot;Select:  &quot;, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      RadioButton['RBChLim'](&quot;Change Limits&quot;, 'value'=false, 'group'='BG1', enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      RadioButton['RBSubBk'](&quot;Substitute Back&quot;, 'value'=true, 'group'='BG1', enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LChLim](&quot;Compute the u-limits&quot;, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          Label[Lxb](&quot; x =&quot;, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          TextField['TFxb'](&quot;b&quot;, 'width'=10, editable=false, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          Label[LuB](&quot; @  u =&quot;, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          TextField['TFuB'](&quot;g(b)&quot;, 'width'=20, 'background'=turquoise, visible=false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          Label[Lxa](&quot; x =&quot;, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          TextField['TFxa'](&quot;a&quot;, 'width'=10, editable=false, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          Label[LuA](&quot; @  u =&quot;, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">          TextField['TFuA'](&quot;g(a)&quot;, 'width'=20, 'background'=turquoise, visible=false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">        ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BCkChLim](&quot;Check&quot;, Evaluate('function' = &quot;Check_ChLim&quot;), background=wheat, visible=false, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['ChLimck']('width'=6, editable=false, background=white, visible=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BShChLim](&quot;Show&quot;, Evaluate('function' = &quot;Show_ChLim&quot;), background=wheat, visible=false, enabled =false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LIntegValx](&quot;Substitute back:           I =&quot;, visible=true),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFIntegValx']('width'=40, 'background'=turquoise, visible=true),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BPreIntegValx](&quot;Preview&quot;, onclick=APreIntegValx, background=wheat, visible=true, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BCkIntegValx](&quot;Check&quot;, Evaluate('function' = &quot;Check_IntegValx&quot;), background=wheat, visible=true, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['IntegValxck']('width'=6, editable=false, background=white, visible=true),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BShIntegValx](&quot;Show&quot;, Evaluate('function' = &quot;Show_IntegValx&quot;), background=wheat, visible=true, enabled =false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  BoxColumn('background'=wheat, 'inset'=0, 'spacing'=0, 'border'=true,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    'caption'=&quot;Step 4 - Final evaluation of the definite integral (if appropriate)&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BSumDef](&quot;Summarize the Definite Integral Computations&quot;, RunWindow(SUMDEF), background=wheat, enabled=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LIntegDefVal](&quot;Evaluate at the limits:   J =&quot;, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFIntegDefVal']('width'=40, 'background'=wheat, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BPreIntegDefVal](&quot;Preview&quot;, onclick=APreIntegDefVal, background=wheat, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BCkIntegDefVal](&quot;Check&quot;, Evaluate('function' = &quot;Check_IntegDefVal&quot;), background=wheat, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['IntegDefValck']('width'=6, editable=false, background=white, enabled =false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button[BShIntegDefVal](&quot;Show&quot;, Evaluate('function' = &quot;Show_IntegDefVal&quot;), background=wheat, enabled =false)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  TextBox['reply']('width'=70, 'height'=2, 'editable'='false', background=white ),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  BoxRow('background'=&quot;#DDFFFF&quot;, 'inset'=0, 'spacing'=0,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Label(&quot;Programmers: Matt Pertzborn / Daniel Lin&quot;, 'font'=helv10),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    Label(&quot;Copyright 2006, D.B. Meade and P.B. Yasskin&quot;, 'font'=helv10),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    HorizontalGlue(),    Label(&quot;v. 1.2 May 2006&quot;, 'font'=helv10)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  )</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Window[DEFintro]( 'title'=&quot;Definite Integration&quot;, 'defaultbutton'='CloseDef', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Your goal is to compute the definite integral:                 &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLintdef]('value'=MathML[Export](&quot; J&quot; = Int(F(x),x=a..b)), 'width'=300, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;But first compute the corresponding indefinite integral:&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLintindef]('value'=MathML[Export](&quot; I&quot; = Int(F(x),x)), 'width'=300, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;You will get to choose whether you want to Change Limits or Substitute Back.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue()</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      CheckBox[CBDef](&quot;Do not show this window again.&quot;, 'value'=false),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['CloseDef'](&quot;Close&quot;, CloseWindow(DEFintro), background=pink)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Window[HINTSub]( 'title'=&quot;Integration by Substitution -- Hints&quot;, 'defaultbutton'='CloseHint', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['CloseHint'](&quot;Close&quot;, CloseWindow(HINTSub), background=pink)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;The Change of Variables Theorem states:&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer('value'=MathML[Export](Int(f(g(x))*Diff(g,x),x) = Int(f(u),u)), 'width'=350, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LHINTSubU](&quot;So pick u=g(x) so that &quot;),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLHINTSub]('value'=MathML[Export](Int(F(x),x) = 'A'*Int(f(u),u)), 'width'=350, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;for some functions f and g and some constant A.&quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue()],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LHINTSubdU](&quot;Be sure to multiply by dx in your formula for du.&quot;),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue()]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Window[SYNTAX]( 'title'=&quot;Syntax for Integrals&quot;, 'defaultbutton'='CloseInt', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['CloseInt'](&quot;Close&quot;, CloseWindow(SYNTAX), background=pink)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Type &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField(&quot;Int(f(u),u)&quot;, width=12),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot; for &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer('value'=MathML[Export](Int(f(u),u)), 'width'=100, 'height'=50)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot;Type &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField[TFSYNTAX](cat(&quot;sin(x)^n&quot;), width=12),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      &quot; for &quot;,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLSYNTAX]('value'=MathML[Export](sin(x)^'n'), 'width'=100, 'height'=50)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Window[PREVIEW]( 'title'=&quot;Preview&quot;, 'defaultbutton'='UpdatePreview', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      TextField['TFPreview']('width'=50, background=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['UpdatePreview'](&quot;Update&quot;, Evaluate('function' = &quot;Update_Preview()&quot;), background=turquoise),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['ClosePreview'](&quot;Close&quot;, CloseWindow(PREVIEW), background=pink)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLPreview]('value'=MathML[Export](Int(f(x),x)), 'width'=500, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Window[SUMDEF]( 'title'=&quot;Summary of Definite Integral Computations&quot;, 'defaultbutton'='Closesumdef', </Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  [ halign=none, background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Label[LSumDef](&quot;Substituting Back&quot;),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      HorizontalGlue(),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      Button['Closesumdef'](&quot;Close&quot;, CloseWindow(SUMDEF), background=pink)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLsumdef1]('value'=MathML[Export](J = IntegDefx), 'width'=500, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLsumdef2]('value'=MathML[Export](&quot; &quot; = IntegDefux), 'width'=500, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ],</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    [ background=wheat,</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">      MathMLViewer[MMLsumdef3]('value'=MathML[Export](&quot; &quot; = IntegDefEvalx), 'width'=500, 'height'=100)</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">    ]</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ]),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[ADEFintro](RunWindow(DEFintro)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[ARunPreview](RunWindow(PREVIEW)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[APreSub](Evaluate('function' = &quot;Preview(TFIntegu)&quot;)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[APreIndef](Evaluate('function' = &quot;Preview(TFIntegValu)&quot;)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[APreIntegValx](Evaluate('function' = &quot;Preview(TFIntegValx)&quot;)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  Action[APreIntegDefVal](Evaluate('function' = &quot;Preview(TFIntegDefVal)&quot;)),</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">  ButtonGroup['BG1'](onchange = Evaluate('function' = &quot;ChLimSubBk&quot;))</Text-field>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">):</Text-field>
</Group>
<Group labelreference="L56" drawlabel="true">
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Maplets[Display]( TrigIntegrals );</Text-field>
</Group>
</Worksheet>
