<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="11" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false"></View-Properties>
<MapleNet-Properties elisiondigitsbefore="100" labelling="true" indentamount="4" elisiontermsthreshold="10000" ansi="false" errorbreak="1" useclientjvm="true" echo="1" imaginaryunit="I" labelwidth="20" plotdriver="openviz" elisiondigitsafter="100" plotoutput="terminal" rtablesize="10" elisiontermsbefore="100" elisiondigitsthreshold="10000" typesetting="standard" plotdevice="inline" verboseproc="1" showassumed="1" errorcursor="false" longdelim="true" plotoptions="" quiet="false" elisiontermsafter="100" screenwidth="79" preplot="" prettyprint="3" displayprecision="-1" warnlevel="3" screenheight="25" latexwidth="6.0" postplot="" prompt="&gt; " ShowLabels="false"/>
<Styles><Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Author" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Annotation Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="true"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[40,120,40]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Inert Output" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[144,144,144]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Page Number" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 4" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Serif" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="16" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Serif" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.3" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Annotation Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="any" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="newline" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
</Styles>
<Task-table>
    <Task-category name="&lt;default&gt;">
    </Task-category>
</Task-table>
<Task>
</Task>
<Group labelreference="L2" drawlabel="true">
<Input>
<Text-field style="Title" layout="Title"><Font encoding="UTF-8">Jens Eising, Line\303\246r Algebra, Kapitel 1</Font></Text-field>
<Text-field style="Author" layout="Author">Preben Alsholm, 13/12 2007</Text-field>
</Input>
</Group>
<Group labelreference="L30" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group labelreference="L1" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(LinearAlgebra):</Text-field>
</Input>
</Group>
<Group labelreference="L27" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">libname:=&quot;g:/Diplomat/lib01905&quot;,libname;</Text-field>
</Input>
</Group>
<Group labelreference="L28" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(DiploMat);</Text-field>
</Input>
</Group>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.2 og 1.3</Text-field></Title>
<Group labelreference="L4" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Koefficientmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=Matrix([[1,3,2,4,5],[2,6,4,3,5],[3,8,6,7,6],[4,14,8,10,22]]);</Text-field>
</Input>
</Group>
<Group labelreference="L6" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">H\303\270jresiden</Font></Text-field>
</Input>
</Group>
<Group labelreference="L5" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:=&lt;9,3,5,32&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L9" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Totalmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L8" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">F\303\270rst lader vi Maple l\303\270se opgaven selv:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L10" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L13" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Vi ser, at der er 2 frie variable, hvis navne er en smule grimme.</Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Det bliver lidt k\303\270nnere, hvis man selv bestemmer, hvad de frie variable skal hedde:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L14" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T,free=t);</Text-field>
</Input>
</Group>
<Group labelreference="L15" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Gausselimination:</Text-field>
</Input>
</Group>
<Group labelreference="L7" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(T);</Text-field>
</Input>
</Group>
<Group labelreference="L20" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Reduceret echelonform:</Text-field>
</Input>
</Group>
<Group labelreference="L17" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L21" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">For at opn\303\245 den endelige form i Eksempel 1.2, m\303\245 s\303\270jle 3 og 4 ombyttes:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L19" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ColumnOperation(%,[3,4]);</Text-field>
</Input>
</Group>
<Group labelreference="L23" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Det tilh\303\270rende ligningssystem er (husk at x3 og x4 er byttet om!)</Font></Text-field>
</Input>
</Group>
<Group labelreference="L22" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateEquations(%,[x1,x2,x4,x3,x5]);</Text-field>
</Input>
</Group>
<Group labelreference="L18" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">solve(%,[x1,x2,x4]);</Text-field>
</Input>
</Group>
<Group labelreference="L16" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">subs(op(%),&lt;x1,x2,x3,x4,x5&gt;);</Text-field>
</Input>
</Group>
<Group labelreference="L41" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">I det f\303\270lgende bruges to hjemmelavede procedurer (de ligger i DiploMat-pakken) .</Font></Text-field>
</Input>
</Group>
<Group labelreference="L25" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ExpandVector(%);</Text-field>
</Input>
</Group>
<Group labelreference="L42" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">En s\303\270jlevis Gausselimination (ingen s\303\270jleombytninger):</Font></Text-field>
</Input>
</Group>
<Group labelreference="L37" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Describe(Gauss);</Text-field>
</Input>
</Group>
<Group labelreference="L33" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(T,1);</Text-field>
</Input>
</Group>
<Group labelreference="L40" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(%,2);</Text-field>
</Input>
</Group>
<Group labelreference="L39" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(%,4);</Text-field>
</Input>
</Group>
<Group labelreference="L38" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L36" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.4</Text-field></Title>
<Group labelreference="L92" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Koefficientmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L86" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=Matrix([[1,3,-2,0],[1,2,3,-a],[3,7,a+3,-2*a],[0,1,-5,a^2],[1,1,8,-2*a]]);</Text-field>
</Input>
</Group>
<Group labelreference="L94" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">H\303\270jresiden</Font></Text-field>
</Input>
</Group>
<Group labelreference="L93" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:=&lt;0,-1,a-3,a,-2&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L91" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Totalmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L90" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L72" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">F\303\270rst lader vi Maple l\303\270se opgaven selv:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L69" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L71" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Man skal v\303\246re opm\303\246rksom p\303\245, at Maple uden blusel dividerer med udtryk, som ikke \303\245benlyst er nul, alts\303\245 udtryk som ikke i Maple reducerer til 0. </Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi ser eksempelvis her, at Maple \303\245benbart har divideret med </Font><Font italic="true">a</Font> og <Font italic="true">a</Font><Font encoding="UTF-8"> er jo heller ikke en variabel, der under de givne omst\303\246ndigheder reducerer til 0 i Maple.</Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Konklusionen er, at undtagelsestilf\303\246lde m\303\245 vi selv tage vare p\303\245.</Font></Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Det er slet ikke nok blot at kigge p\303\245 resultatet og se om dette indeholder br\303\270ker med n\303\246vnere, der kunne v\303\246re nul for visse v\303\246rdier af en parameter (her </Font><Font italic="true">a</Font>).</Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Ved Gausseliminationen kan nemlig udm\303\246rket v\303\246re foretaget r\303\246kkeoperationer, der foruds\303\246tter noget om parametrene.</Font></Text-field>
<Text-field style="Text" layout="Normal">Eksempel:</Text-field>
</Input>
</Group>
<Group labelreference="L96" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">a*x=a*(a-1);</Text-field>
</Input>
</Group>
<Group labelreference="L97" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">solve(%,x);</Text-field>
</Input>
</Group>
<Group labelreference="L99" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Ligningen har uendeligt mange l\303\270sninger for a=0, men dette ses jo ikke i Mapleresultatet!</Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi m\303\245 alts\303\245 g\303\245 forsigtigt til v\303\246rks og unders\303\270ge hver eneste r\303\246kkeoperation.</Font></Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">I Maple kan de n\303\270dvendige r\303\246kkeoperationer afl\303\246ses i L-matricen, som er midterste output fra kommandoen </Font></Text-field>
</Input>
</Group>
<Group labelreference="L98" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LUDecomposition(T);</Text-field>
</Input>
</Group>
<Group labelreference="L101" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Den f\303\245s ogs\303\245 alene s\303\245ledes</Font></Text-field>
</Input>
</Group>
<Group labelreference="L100" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">L:=LUDecomposition(T,output='L');</Text-field>
</Input>
</Group>
<Group labelreference="L103" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">De tal der st\303\245r under diagonalen er de konstanter k(i, j) = L[i, j], der optr\303\246der ved r\303\246kkeoperationen R(i):=R(i) - k(i, j)*R(j)</Font></Text-field>
</Input>
</Group>
<Group labelreference="L104" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">RowOperation(T,[2,1],-L[2,1]);</Text-field>
</Input>
</Group>
<Group labelreference="L109" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">RowOperation(%,[3,1],-L[3,1]);</Text-field>
</Input>
</Group>
<Group labelreference="L108" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">RowOperation(%,[4,1],-L[4,1]);</Text-field>
</Input>
</Group>
<Group labelreference="L107" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">RowOperation(%,[5,1],-L[5,1]);</Text-field>
</Input>
</Group>
<Group labelreference="L106" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L105" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L75" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Gausselimination:</Text-field>
</Input>
</Group>
<Group labelreference="L95" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(T);</Text-field>
</Input>
</Group>
<Group labelreference="L88" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Reduceret echelonform:</Text-field>
</Input>
</Group>
<Group labelreference="L73" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L89" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">For at opn\303\245 den endelige form i Eksempel 1.2, m\303\245 s\303\270jle 3 og 4 ombyttes:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L77" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ColumnOperation(%,[3,4]);</Text-field>
</Input>
</Group>
<Group labelreference="L83" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Det tilh\303\270rende ligningssystem er (husk at x3 og x4 er byttet om!)</Font></Text-field>
</Input>
</Group>
<Group labelreference="L82" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateEquations(%,[x1,x2,x4,x3,x5]);</Text-field>
</Input>
</Group>
<Group labelreference="L74" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">solve(%,[x1,x2,x4]);</Text-field>
</Input>
</Group>
<Group labelreference="L76" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">subs(op(%),&lt;x1,x2,x3,x4,x5&gt;);</Text-field>
</Input>
</Group>
<Group labelreference="L84" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">I det f\303\270lgende bruges to hjemmelavede procedurer (de ligger i DiploMat-pakken) .</Font></Text-field>
</Input>
</Group>
<Group labelreference="L87" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ExpandVector(%);</Text-field>
</Input>
</Group>
<Group labelreference="L85" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">En s\303\270jlevis Gausselimination (ingen s\303\270jleombytninger):</Font></Text-field>
</Input>
</Group>
<Group labelreference="L80" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Describe(Gauss);</Text-field>
</Input>
</Group>
<Group labelreference="L68" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(T,1);</Text-field>
</Input>
</Group>
<Group labelreference="L81" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(%,2);</Text-field>
</Input>
</Group>
<Group labelreference="L78" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gauss(%,4);</Text-field>
</Input>
</Group>
<Group labelreference="L79" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L67" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.5</Text-field></Title>
<Group labelreference="L116" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Koefficientmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L110" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=Matrix([[1,4,3,4],[3,1,-2,1],[-2,0,1,2],[2,1,-1,0]]);</Text-field>
</Input>
</Group>
<Group labelreference="L117" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">H\303\270jresiden</Font></Text-field>
</Input>
</Group>
<Group labelreference="L113" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:=&lt;2,6,-6,5&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L115" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Totalmatricen</Text-field>
</Input>
</Group>
<Group labelreference="L112" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L118" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Maplel\303\270sning direkte</Font></Text-field>
</Input>
</Group>
<Group labelreference="L114" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L121" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Gausselimination til echelonform</Text-field>
</Input>
</Group>
<Group labelreference="L120" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(T);</Text-field>
</Input>
</Group>
<Group labelreference="L122" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Helt til reduceret echelonform</Text-field>
</Input>
</Group>
<Group labelreference="L119" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L111" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.6</Text-field></Title>
<Group labelreference="L125" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=Matrix([[a,a+1,-1],[1,0,1],[0,-(a+1)^2,1]]);</Text-field>
</Input>
</Group>
<Group labelreference="L124" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:=&lt;0,0,2&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L127" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L129" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Her indg\303\245r en parameter </Font><Font italic="true">a,</Font><Font encoding="UTF-8"> s\303\245 vi g\303\270r bedst i at g\303\245 forsigtigt til v\303\246rks: </Font></Text-field>
</Input>
</Group>
<Group labelreference="L128" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LUDecomposition(T);</Text-field>
</Input>
</Group>
<Group labelreference="L131" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Fra midterste matrix ser vi, at vi ved Gausseliminationen bliver n\303\270dt til at skelne mellem </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RKyZOb3RFcXVhbDtGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5LUY2Ni1RIn5GJ0Y5RjtGPkZARkJGREZGRkgvRktRJjAuMGVtRicvRk5GV0Y5">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RKyZOb3RFcXVhbDtGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5LUY2Ni1RIn5GJ0Y5RjtGPkZARkJGREZGRkgvRktRJjAuMGVtRicvRk5GV0Y5</Equation>og <Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=</Equation>.</Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">F\303\270rst det 'generiske' tilf\303\246lde </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RKyZOb3RFcXVhbDtGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RKyZOb3RFcXVhbDtGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=</Equation>.</Text-field>
</Input>
</Group>
<Group labelreference="L130" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(T);</Text-field>
</Input>
</Group>
<Group labelreference="L133" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Ved den fortsatte l\303\270sning optr\303\246der nu yderligere specialtilf\303\246ldene </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYoLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjJGJ0Y5LUY2Ni1RIn5GJ0Y5RjtGPkZARkJGREZGRkgvRktRJjAuMGVtRicvRk5GZ25GOQ==">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYoLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjJGJ0Y5LUY2Ni1RIn5GJ0Y5RjtGPkZARkJGREZGRkgvRktRJjAuMGVtRicvRk5GZ25GOQ==</Equation> og <Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjFGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjFGJ0Y5Rjk=</Equation>.</Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">N\303\245r bortses fra de 3 specialtilf\303\246lde f\303\245s</Font></Text-field>
</Input>
</Group>
<Group labelreference="L126" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L135" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Specialtilf\303\246ldet </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1JI21uR0YkNiRRIjBGJ0Y5Rjk=</Equation>:</Text-field>
</Input>
</Group>
<Group labelreference="L134" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T1:=subs(a=0,T);</Text-field>
</Input>
</Group>
<Group labelreference="L138" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T1);</Text-field>
</Input>
</Group>
<Group labelreference="L137" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Ingen l\303\270sning med andre ord!</Font></Text-field>
</Input>
</Group>
<Group labelreference="L139" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Specialtilf\303\246ldet </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjJGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjJGJ0Y5Rjk=</Equation>:</Text-field>
</Input>
</Group>
<Group labelreference="L136" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T2:=subs(a=-2,T);</Text-field>
</Input>
</Group>
<Group labelreference="L141" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T2);</Text-field>
</Input>
</Group>
<Group labelreference="L140" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Heller ingen l\303\270sning.</Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Nu sidste specialtilf\303\246lde </Font><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjFGJ0Y5Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEiYUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIj1GJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC1GNjYtUSomdW1pbnVzMDtGJ0Y5RjtGPkZARkJGREZGRkgvRktRLDAuMjIyMjIyMmVtRicvRk5GUy1JI21uR0YkNiRRIjFGJ0Y5Rjk=</Equation>:</Text-field>
</Input>
</Group>
<Group labelreference="L143" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T3:=subs(a=-1,T);</Text-field>
</Input>
</Group>
<Group labelreference="L142" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T3,free=t);</Text-field>
</Input>
</Group>
<Group labelreference="L123" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Uendeligt mange l\303\270sninger.</Font></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.8 (metode 2)</Text-field></Title>
<Group labelreference="L147" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:='b':</Text-field>
</Input>
</Group>
<Group labelreference="L149" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Da vi skal inds\303\246tte punkter om et \303\270jeblik, er det praktisk at g\303\270re ligningen til en funktion:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L146" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligning:=(x,y,z)-&gt;a*x+b*y+c*z+d=0;</Text-field>
</Input>
</Group>
<Group labelreference="L148" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi inds\303\246tter de tre punkter:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L145" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligning(0,1,1),ligning(1,1,2), ligning(2,-1,-1);</Text-field>
</Input>
</Group>
<Group labelreference="L151" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=GenerateMatrix([%],[a,b,c,d],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L150" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T,free=t);</Text-field>
</Input>
</Group>
<Group labelreference="L144" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi v\303\246lger den frie parameter til -1:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L152" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">subs(t[4]=-1,%);</Text-field>
</Input>
</Group>
<Group labelreference="L155" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;a,b,c,d&gt;,%);</Text-field>
</Input>
</Group>
<Group labelreference="L156" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">convert(%,list);</Text-field>
</Input>
</Group>
<Group labelreference="L154" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">L:=subs(%,ligning(x,y,z));</Text-field>
</Input>
</Group>
<Group labelreference="L157" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-implicitplot3d(L,x=0..2,y=-1..1,z=-1..2,axes=normal);</Text-field>
</Input>
</Group>
<Group labelreference="L159" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F:=solve(L,z);</Text-field>
</Input>
</Group>
<Group labelreference="L158" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot3d(F,x=-1..3,y=-2..2,axes=normal,style=patchnogrid);</Text-field>
</Input>
</Group>
<Group labelreference="L153" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-pointplot3d([[0,1,1],[1,1,2], [2,-1,-1]],symbol=solidsphere,symbolsize=25,color=maroon):
plots:-display(%%,%);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.9 (Numerisk integration)</Text-field></Title>
<Group labelreference="L162" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Newton-Cotes:</Text-field>
</Input>
</Group>
<Group labelreference="L161" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=3:
h:=(b-a)/(n-1);
NC:=f-&gt;add(w[k]*f(a+(k-1)*h),k=1..n);</Text-field>
</Input>
</Group>
<Group labelreference="L164" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">NC(f);</Text-field>
</Input>
</Group>
<Group labelreference="L170" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi forlanger, at ovenst\303\245ende formel skal give integralets eksakte v\303\246rdi for alle polynomier af grad h\303\270jst n - 1, men udregner af hensyn til en senere bem\303\246rkning ogs\303\245 de ligninger, der svarer til inds\303\246ttelse af polynomier to grader h\303\270jere:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L163" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 1 to n+2 do
g:=x-&gt;x^(i-1);
ligning[i]:=NC(g)=int(g(x),x=a..b);
end do;</Text-field>
</Input>
<Input>
<Text-field prompt="&gt; " style="Maple Input" alignment="left" firstindent="0" spacebelow="0" leftmargin="0" linespacing="0.0" initial="0" linebreak="space" rightmargin="0" bulletsuffix="" spaceabove="0" bullet="none" pagebreak-before="false"></Text-field>
</Input>
</Group>
<Group labelreference="L171" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Totalmatricen for systemet af ligningerne 1, 2,  ... , n  er</Text-field>
</Input>
</Group>
<Group labelreference="L160" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix([seq(ligning[i],i=1..n)],[seq(w[i],i=1..n)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L172" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">L\303\270sningen for v\303\246gtene w er</Font></Text-field>
</Input>
</Group>
<Group labelreference="L165" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(%);</Text-field>
</Input>
</Group>
<Group labelreference="L166" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(w[i],i=1..n)&gt;,%);</Text-field>
</Input>
</Group>
<Group labelreference="L169" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">subs(convert(%,list),NC(f));</Text-field>
</Input>
</Group>
<Group labelreference="L173" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Den konkrete formel for numerisk integration er s\303\245</Font></Text-field>
</Input>
</Group>
<Group labelreference="L168" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">factor(%);</Text-field>
</Input>
</Group>
<Group labelreference="L174" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Tager vi en ligning mere med (polynomier af n'te grad) f\303\245s</Font></Text-field>
</Input>
</Group>
<Group labelreference="L167" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix([seq(ligning[i],i=1..n+1)],[seq(w[i],i=1..n)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L175" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(%);</Text-field>
</Input>
</Group>
<Group labelreference="L177" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">S\303\245 det ses, at de v\303\246gte, der sikrede at polynomier af grad h\303\270jst n - 1 integreres eksakt ved vores approksimation, ogs\303\245 sikrer eksakt integration af polynomier af grad n, hvis n er ulige! </Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Hvis n er lige, s\303\245 opn\303\245s kun eksakt resultat for polynomier af grad n - 1.</Font></Text-field>
<Text-field style="Text" layout="Normal"></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">For polynomier af grad n + 1 g\303\245r den dog ikke uanset om n er ulige eller ej:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L176" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix([seq(ligning[i],i=1..n+2)],[seq(w[i],i=1..n)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L178" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(%);</Text-field>
</Input>
</Group>
<Group labelreference="L187" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Student-pakken indeholder en underpakke Calculus1, hvor proceduren ApproximateInt kan give det Simpsonresultat, som vi fandt ovenfor:</Text-field>
</Input>
</Group>
<Group labelreference="L186" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(f(x),x=a..b,method=simpson,partition=1);</Text-field>
</Input>
</Group>
<Group labelreference="L188" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Konkret eksempel:</Text-field>
</Input>
</Group>
<Group labelreference="L180" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(sin(x),x=0..Pi/2,method=simpson,partition=1);</Text-field>
</Input>
</Group>
<Group labelreference="L182" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L189" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Deles intervallet [a, b] i flere (her to) og udnyttes Simpsons basale formel p\303\245 hvert af disse f\303\245s:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L190" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(f(x),x=a..b,method=simpson,partition=2);</Text-field>
</Input>
</Group>
<Group labelreference="L191" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">I det konkrete tilf\303\246lde:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L181" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(sin(x),x=0..Pi/2,method=simpson,partition=2);</Text-field>
</Input>
</Group>
<Group labelreference="L183" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L193" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">16 delintervaller:</Text-field>
</Input>
</Group>
<Group labelreference="L185" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(sin(x),x=0..Pi/2,method=simpson,partition=16):</Text-field>
</Input>
</Group>
<Group labelreference="L192" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L196" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Hvis vi i vore beregninger tager n = 4 f\303\245s </Font></Text-field>
</Input>
</Group>
<Group labelreference="L194" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(f(x),x=a..b,method=simpson[3/8],partition=1);</Text-field>
</Input>
</Group>
<Group labelreference="L197" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Maple kalder ogs\303\245 en Newton-Cotes af orden n - 1</Font></Text-field>
</Input>
</Group>
<Group labelreference="L195" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(f(x),x=a..b,method=newtoncotes[3],partition=1);</Text-field>
</Input>
</Group>
<Group labelreference="L198" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Student:-Calculus1:-ApproximateInt(f(x),x=a..b,method=newtoncotes[4],partition=1);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.10 (Numerisk differentiation)</Text-field></Title>
<Group labelreference="L215" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">h:='h':</Text-field>
</Input>
</Group>
<Group labelreference="L211" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d1:=f-&gt;add(alpha[k]*f(a+k*h),k=-1..1):
d2:=f-&gt;add(beta[k]*f(a+k*h),k=-1..1):</Text-field>
</Input>
</Group>
<Group labelreference="L210" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d1(f);
d2(f);</Text-field>
</Input>
</Group>
<Group labelreference="L205" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi forlanger, at ovenst\303\245ende formler skal give eksakte v\303\246rdi for x = a for den f\303\270rste og anden afledede (henholdsvis) af alle polynomier af grad h\303\270jst 2.</Font></Text-field>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Den f\303\270rste afledede:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L209" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 0 to 2 do
g:=x-&gt;x^i;
ligning1[i]:=d1(g)=D(g)(a);
end do;</Text-field>
</Input>
<Input>
<Text-field prompt="&gt; " style="Maple Input" alignment="left" firstindent="0" spacebelow="0" leftmargin="0" linespacing="0.0" initial="0" linebreak="space" rightmargin="0" bulletsuffix="" spaceabove="0" bullet="none" pagebreak-before="false"></Text-field>
</Input>
</Group>
<Group labelreference="L217" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Den anden afledede:</Text-field>
</Input>
</Group>
<Group labelreference="L216" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 0 to 2 do
g:=x-&gt;x^i;
ligning2[i]:=d2(g)=(D@@2)(g)(a);
end do;</Text-field>
</Input>
</Group>
<Group labelreference="L204" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Totalmatricen for systemet for den f\303\270rste afledede</Font></Text-field>
</Input>
</Group>
<Group labelreference="L207" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T1:=GenerateMatrix([seq(ligning1[i],i=0..2)],[seq(alpha[i],i=-1..1)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L220" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Da systemet for den anden afledede har samme koefficientmatrix udelader vi 'augmented=true':</Text-field>
</Input>
</Group>
<Group labelreference="L219" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix([seq(ligning2[i],i=0..2)],[seq(beta[i],i=-1..1)]);</Text-field>
</Input>
</Group>
<Group labelreference="L223" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi sammenskriver de to systemer i \303\251n totalmatrix (to h\303\270jresider):</Font></Text-field>
</Input>
</Group>
<Group labelreference="L222" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;T1|%[2]&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L224" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">L:=ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L208" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">L\303\270sningen for v\303\246gtene alpha</Font> er</Text-field>
</Input>
</Group>
<Group labelreference="L214" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[i],i=-1..1)&gt;,Column(L,4));</Text-field>
</Input>
</Group>
<Group labelreference="L225" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Den konkrete formel for numerisk differentiation (f\303\270rste afledede) er s\303\245</Font></Text-field>
</Input>
</Group>
<Group labelreference="L203" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">normal(subs(convert(%,list),d1(f)));</Text-field>
</Input>
</Group>
<Group labelreference="L229" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">L\303\270sningen for v\303\246gtene beta</Font> er</Text-field>
</Input>
</Group>
<Group labelreference="L227" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(beta[i],i=-1..1)&gt;,Column(L,5));</Text-field>
</Input>
</Group>
<Group labelreference="L228" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Den konkrete formel for numerisk differentiation (anden afledede) er s\303\245</Font></Text-field>
</Input>
</Group>
<Group labelreference="L230" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">normal(subs(convert(%,list),d2(f)));</Text-field>
</Input>
</Group>
<Group labelreference="L199" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1"><Font encoding="UTF-8">Eksempel 1.11 (Randv\303\246rdiproblem)</Font></Text-field></Title>
<Group labelreference="L233" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">u1:=x-&gt;(u(x+h)-u(x-h))/2/h;</Text-field>
</Input>
</Group>
<Group labelreference="L232" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">u2:=x-&gt;(u(x+h)-2*u(x)+u(x-h))/h^2;</Text-field>
</Input>
</Group>
<Group labelreference="L238" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligning:=diff(u(x),x,x)=-f(x);</Text-field>
</Input>
</Group>
<Group labelreference="L241" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Randv\303\246rdiproblemet kan l\303\270ses p\303\245 simpel m\303\245de ved to integrationer.</Font></Text-field>
<Text-field style="Text" layout="Normal">Her er blot brugt Maple:</Text-field>
</Input>
</Group>
<Group labelreference="L240" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dsolve({ligning,u(0)=0,u(1)=0});</Text-field>
</Input>
</Group>
<Group labelreference="L242" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">En approksimativ l\303\270sning kan findes s\303\245ledes:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L237" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d_ligning:=subs(diff(u(x),x,x)=u2(x),ligning);</Text-field>
</Input>
</Group>
<Group labelreference="L236" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=4:
seq(subs(x=k*h,d_ligning),k=1..n-1);</Text-field>
</Input>
</Group>
<Group labelreference="L231" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=GenerateMatrix(subs(u(n*h)=0,u(0)=0,[%]),[seq(u(k*h),k=1..n-1)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L239" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Rank(T);</Text-field>
</Input>
</Group>
<Group labelreference="L245" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L244" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Vi tager et konkret eksempel (lav selv om p\303\245 n):</Font></Text-field>
</Input>
</Group>
<Group labelreference="L247" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=6: 
h:=1/n: f:=x-&gt;(1+x)*(2-x);
seq(subs(x=k*h,d_ligning),k=1..n-1);</Text-field>
</Input>
</Group>
<Group labelreference="L251" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=GenerateMatrix(subs(u(n*h)=0,u(0)=0,[%]),[seq(u(k*h),k=1..n-1)],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L250" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">U:=LinearSolve(T);</Text-field>
</Input>
</Group>
<Group labelreference="L257" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Sammenligning med det eksakte resultat:</Text-field>
</Input>
</Group>
<Group labelreference="L255" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">res:=dsolve({ligning,u(0)=0,u(1)=0});</Text-field>
</Input>
</Group>
<Group labelreference="L254" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([[[0,0],seq([k/n,U[k]],k=1..n-1),[1,0]],rhs(res)],x=0..1);</Text-field>
</Input>
</Group>
<Group labelreference="L256" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L243" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.12</Text-field></Title>
<Group labelreference="L258" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Float(89,7);</Text-field>
</Input>
</Group>
<Group labelreference="L264" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">addressof(%);</Text-field>
</Input>
</Group>
<Group labelreference="L263" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d:=disassemble(%);</Text-field>
</Input>
</Group>
<Group labelreference="L266" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">kernelopts(dagtag=d[1]);</Text-field>
</Input>
</Group>
<Group labelreference="L265" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pointto(d[2]);</Text-field>
</Input>
</Group>
<Group labelreference="L268" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pointto(d[3]);</Text-field>
</Input>
</Group>
<Group labelreference="L267" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dismantle(Float(89,7));</Text-field>
</Input>
</Group>
<Group labelreference="L259" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">HFloat(89,7);</Text-field>
</Input>
</Group>
<Group labelreference="L272" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">addressof(%);</Text-field>
</Input>
</Group>
<Group labelreference="L274" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d:=disassemble(%);</Text-field>
</Input>
</Group>
<Group labelreference="L270" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">kernelopts(dagtag=d[1]);</Text-field>
</Input>
</Group>
<Group labelreference="L273" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pointto(d[2]);</Text-field>
</Input>
</Group>
<Group labelreference="L275" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pointto(d[3]);</Text-field>
</Input>
</Group>
<Group labelreference="L271" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">dismantle(HFloat(89,7));</Text-field>
</Input>
</Group>
<Group labelreference="L260" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L261" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L262" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.13</Text-field></Title>
<Group labelreference="L278" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=5:
P:=x-&gt;add(alpha[k]*x^k,k=0..n);</Text-field>
</Input>
</Group>
<Group labelreference="L277" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P(x);</Text-field>
</Input>
</Group>
<Group labelreference="L280" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">m:=8:
Lx:=[seq(x[k],k=1..m)]:
Ly:=[seq(y[k],k=1..m)]:</Text-field>
</Input>
</Group>
<Group labelreference="L279" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligninger:=[seq(P(Lx[k])=Ly[k],k=1..m)];</Text-field>
</Input>
</Group>
<Group labelreference="L276" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A,b:=GenerateMatrix(ligninger,[seq(alpha[k],k=0..n)]);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.14 (Interpolation)</Text-field></Title>
<Group labelreference="L284" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=4:
P:=x-&gt;add(alpha[k]*phi[k](x),k=1..n);</Text-field>
</Input>
</Group>
<Group labelreference="L283" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P(x);</Text-field>
</Input>
</Group>
<Group labelreference="L286" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">m:=n:
Lx:=[seq(x[k],k=1..m)]:
Ly:=[seq(y[k],k=1..m)]:</Text-field>
</Input>
</Group>
<Group labelreference="L285" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligninger:=[seq(P(Lx[k])=Ly[k],k=1..m)];</Text-field>
</Input>
</Group>
<Group labelreference="L282" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A,b:=GenerateMatrix(ligninger,[seq(alpha[k],k=1..n)]);</Text-field>
</Input>
</Group>
<Group labelreference="L281" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.15 (Interpolation)</Text-field></Title>
<Group labelreference="L289" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">f1:=x-&gt;1/(1+x^2)-2; f2:=x-&gt;1/(1+(x-0.1)^2)-1; f3:=x-&gt;0.5/(0.1+(x-0.2)^2);</Text-field>
</Input>
</Group>
<Group labelreference="L288" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([f1,f2,f3],-1..1,thickness=3);</Text-field>
</Input>
</Group>
<Group labelreference="L297" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">p1:=%:</Text-field>
</Input>
</Group>
<Group labelreference="L292" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Lx:=[-0.5,0,0.2,0.6]:</Text-field>
</Input>
</Group>
<Group labelreference="L291" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly1:=map(f1,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L290" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly2:=map(f2,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L287" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly3:=map(f3,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L293" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt1:=zip((x,y)-&gt;[x,y],Lx,Ly1);</Text-field>
</Input>
</Group>
<Group labelreference="L296" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt2:=zip((x,y)-&gt;[x,y],Lx,Ly2);</Text-field>
</Input>
</Group>
<Group labelreference="L294" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt3:=zip((x,y)-&gt;[x,y],Lx,Ly3);</Text-field>
</Input>
</Group>
<Group labelreference="L299" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(pkt1,style=point,symbol=circle,symbolsize=20):
plot(pkt2,style=point,symbol=circle,symbolsize=20):
plot(pkt3,style=point,symbol=circle,symbolsize=20):</Text-field>
</Input>
</Group>
<Group labelreference="L298" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-display(p1,%,%%,%%%);</Text-field>
</Input>
</Group>
<Group labelreference="L324" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pp:=%:</Text-field>
</Input>
</Group>
<Group labelreference="L308" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">expand(ChebyshevT(2,x));</Text-field>
</Input>
</Group>
<Group labelreference="L303" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=nops(Lx):
P:=x-&gt;add(alpha[k]*ChebyshevT(k,x),k=0..n-1);</Text-field>
</Input>
</Group>
<Group labelreference="L306" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P(x);</Text-field>
</Input>
</Group>
<Group labelreference="L304" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligninger1:=[seq(P(Lx[k])=Ly1[k],k=1..n)];
ligninger2:=[seq(P(Lx[k])=Ly2[k],k=1..n)];
ligninger3:=[seq(P(Lx[k])=Ly3[k],k=1..n)];</Text-field>
</Input>
</Group>
<Group labelreference="L305" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A,b1:=GenerateMatrix(ligninger1,[seq(alpha[k],k=0..n-1)]);</Text-field>
</Input>
</Group>
<Group labelreference="L302" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=simplify(A);</Text-field>
</Input>
</Group>
<Group labelreference="L300" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix(ligninger2,[seq(alpha[k],k=0..n-1)]);</Text-field>
</Input>
</Group>
<Group labelreference="L295" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b2:=%[2];</Text-field>
</Input>
</Group>
<Group labelreference="L309" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix(ligninger3,[seq(alpha[k],k=0..n-1)]):</Text-field>
</Input>
</Group>
<Group labelreference="L310" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" bold="false" layout="Normal"><Font bold="true">b3:=%[2];</Font></Text-field>
</Input>
</Group>
<Group labelreference="L311" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b1|b2|b3&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L312" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L313" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">res:=map(fnormal,%);</Text-field>
</Input>
</Group>
<Group labelreference="L314" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P(x);</Text-field>
</Input>
</Group>
<Group labelreference="L318" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+1));</Text-field>
</Input>
</Group>
<Group labelreference="L317" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F1:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L320" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+2));</Text-field>
</Input>
</Group>
<Group labelreference="L321" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F2:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L322" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+3));</Text-field>
</Input>
</Group>
<Group labelreference="L323" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F3:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L316" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([F1,F2,F3],x=-1..1,-2..6);</Text-field>
</Input>
</Group>
<Group labelreference="L315" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-display(pp,%);</Text-field>
</Input>
</Group>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 2" layout="Heading 2">Ni punkter</Text-field></Title>
<Group labelreference="L340" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Lx:=[seq(-0.8+k*0.2,k=0..8)];</Text-field>
</Input>
</Group>
<Group labelreference="L341" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly1:=map(f1,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L342" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly2:=map(f2,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L334" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly3:=map(f3,Lx);</Text-field>
</Input>
</Group>
<Group labelreference="L357" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt1:=zip((x,y)-&gt;[x,y],Lx,Ly1);</Text-field>
</Input>
</Group>
<Group labelreference="L354" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt2:=zip((x,y)-&gt;[x,y],Lx,Ly2);</Text-field>
</Input>
</Group>
<Group labelreference="L356" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt3:=zip((x,y)-&gt;[x,y],Lx,Ly3);</Text-field>
</Input>
</Group>
<Group labelreference="L352" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(pkt1,style=point,symbol=circle,symbolsize=20):
plot(pkt2,style=point,symbol=circle,symbolsize=20):
plot(pkt3,style=point,symbol=circle,symbolsize=20):</Text-field>
</Input>
</Group>
<Group labelreference="L353" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-display(p1,%,%%,%%%);</Text-field>
</Input>
</Group>
<Group labelreference="L330" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pp:=%:</Text-field>
</Input>
</Group>
<Group labelreference="L328" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=nops(Lx):
P:=x-&gt;add(alpha[k]*ChebyshevT(k,x),k=0..n-1);</Text-field>
</Input>
</Group>
<Group labelreference="L329" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P(x);</Text-field>
</Input>
</Group>
<Group labelreference="L327" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ligninger1:=[seq(P(Lx[k])=Ly1[k],k=1..n)]:
ligninger2:=[seq(P(Lx[k])=Ly2[k],k=1..n)]:
ligninger3:=[seq(P(Lx[k])=Ly3[k],k=1..n)]:</Text-field>
</Input>
</Group>
<Group labelreference="L332" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A,b1:=GenerateMatrix(ligninger1,[seq(alpha[k],k=0..n-1)]):</Text-field>
</Input>
</Group>
<Group labelreference="L326" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=simplify(A):</Text-field>
</Input>
</Group>
<Group labelreference="L338" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix(ligninger2,[seq(alpha[k],k=0..n-1)]):</Text-field>
</Input>
</Group>
<Group labelreference="L355" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b2:=%[2]:</Text-field>
</Input>
</Group>
<Group labelreference="L339" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateMatrix(ligninger3,[seq(alpha[k],k=0..n-1)]):</Text-field>
</Input>
</Group>
<Group labelreference="L351" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" bold="false" layout="Normal"><Font bold="true">b3:=%[2]:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L350" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b1|b2|b3&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L349" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ReducedRowEchelonForm(T);</Text-field>
</Input>
</Group>
<Group labelreference="L348" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">res:=map(fnormal,%);</Text-field>
</Input>
</Group>
<Group labelreference="L343" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+1)):</Text-field>
</Input>
</Group>
<Group labelreference="L344" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F1:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L335" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+2)):</Text-field>
</Input>
</Group>
<Group labelreference="L337" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F2:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L336" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">zip(`=`,&lt;seq(alpha[k],k=0..n-1)&gt;,Column(res,n+3)):</Text-field>
</Input>
</Group>
<Group labelreference="L331" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">F3:=subs(convert(%,list),P(x));</Text-field>
</Input>
</Group>
<Group labelreference="L345" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([F1,F2,F3],x=-1..1,-2..6);</Text-field>
</Input>
</Group>
<Group labelreference="L346" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots:-display(pp,%);</Text-field>
</Input>
</Group>
<Group labelreference="L325" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 2" layout="Heading 2">Maples PolynomialInterpolation</Text-field></Title>
<Group labelreference="L358" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(CurveFitting);</Text-field>
</Input>
</Group>
<Group labelreference="L360" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Lx; Ly1;</Text-field>
</Input>
</Group>
<Group labelreference="L359" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">PolynomialInterpolation(Lx,Ly1,x);</Text-field>
</Input>
</Group>
<Group labelreference="L362" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">map(fnormal,%);</Text-field>
</Input>
</Group>
<Group labelreference="L361" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">simplify(F1);</Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Eksempel 1.16 (Mindste kvadraters metode)</Text-field></Title>
<Group labelreference="L366" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Lx:=[1,2,3,4.5,6,8]:</Text-field>
</Input>
</Group>
<Group labelreference="L365" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Ly:=[0.87,1.14,1.71,2.9,3.78,4.61]:</Text-field>
</Input>
</Group>
<Group labelreference="L364" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(CurveFitting);</Text-field>
</Input>
</Group>
<Group labelreference="L363" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">res:=LeastSquares(Lx,Ly,x,curve=alpha*x);</Text-field>
</Input>
</Group>
<Group labelreference="L367" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">pkt:=zip((x,y)-&gt;[x,y],Lx,Ly):</Text-field>
</Input>
</Group>
<Group labelreference="L368" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(pkt,style=point,symbol=solidcircle,symbolsize=20):
plot(res,x=0..8,color=blue):
plots:-display(%%,%);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">LA opgave 1.7</Text-field></Title>
<Group labelreference="L53" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">L:=[x1-x3+x4 = 0,x1+x2+x3+x4=1,4*x1+4*x2+4*x3+3*x4 = 5];</Text-field>
</Input>
</Group>
<Group labelreference="L54" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A,b:=GenerateMatrix(L,[x1,x2,x3,x4]);</Text-field>
</Input>
</Group>
<Group labelreference="L59" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=&lt;A|b&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L56" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Alternativt</Text-field>
</Input>
</Group>
<Group labelreference="L55" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">T:=GenerateMatrix(L,[x1,x2,x3,x4],augmented=true);</Text-field>
</Input>
</Group>
<Group labelreference="L57" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">LinearSolve(T,free=t);</Text-field>
</Input>
</Group>
<Group labelreference="L62" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ExpandVector(%);</Text-field>
</Input>
</Group>
<Group labelreference="L58" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Detaljer:</Text-field>
</Input>
</Group>
<Group labelreference="L60" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GaussianElimination(T);</Text-field>
</Input>
</Group>
<Group labelreference="L64" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal">Vi ser, at x3 er fri.</Text-field>
</Input>
</Group>
<Group labelreference="L63" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">GenerateEquations(%,[x1,x2,x3,x4]);</Text-field>
</Input>
</Group>
<Group labelreference="L52" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">solve(%,[x1,x2,x4]);</Text-field>
</Input>
</Group>
<Group labelreference="L65" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">subs(op(%),&lt;x1,x2,x3,x4&gt;);</Text-field>
</Input>
</Group>
<Group labelreference="L66" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ExpandVector(%);</Text-field>
</Input>
</Group>
</Section>
</Worksheet>