<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="15" minor="0"/>
<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" contextmenusize="automatic" plotdriver="opengl" elisiondigitsafter="100" plotoutput="terminal" helpbrowser="standard" 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" screenpixelheight="800" warnlevel="3" screenheight="25" latexwidth="6.0" postplot="" prompt="&gt; " ShowLabels="true"/>
<Styles><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 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="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="Help Maple Name" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[104,64,92]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Menus" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" 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="Fixed Width" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" 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="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Plot Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Nonterminal" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Heading" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Variable" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Italic Bold" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Default" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Underlined Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" 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="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="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="HyperlinkError" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="2D Math Bold Small" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" 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="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Output Labels" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" subscript="false" superscript="false" underline="false" 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="Plot Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Emphasized" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="2D Math Symbol 2" background="[255,255,255]" bold="false" executable="false" family="SymbolPi" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Comment" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" 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="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Caption Reference" 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="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Courier New" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="true"/>
<Font name="Code" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="9" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[64,128,64]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" 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="2D Math Italic Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" 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="2D Comment" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Underlined Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Copyright" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Help Underlined" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" 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="Prompt" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" 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="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Header and Footer" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="true" 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="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" 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="Help Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Notes" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" 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="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="LaTeX" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="HyperlinkWarning" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Popup" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" placeholder="false"/>
<Font name="Caption Text" 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="Left Justified Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" placeholder="false"/>
<Font name="Help Fixed" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" placeholder="false"/>
<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="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="Fixed Width" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" 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="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Help" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Diagnostic" 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="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.5" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="HyperlinkError" 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="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="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="6" spacebelow="6" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="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="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="HyperlinkWarning" 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="Left Justified Maple Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.5" spaceabove="0" spacebelow="0" 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">Pienimm\303\244n neli\303\266summan sovitus</Font></Text-field>
<Text-field style="Author" layout="Author">V2 19.3. 2002</Text-field>
</Input>
</Group>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Aluksi luentoesimerkki</Text-field></Title>
<Text-field style="Normal" layout="Normal"></Text-field>
<Group labelreference="L3" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(LinearAlgebra):alias(Tr=Transpose):with(plots):</Text-field>
</Input>
</Group>
<Group labelreference="L4" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=[-1.3,-0.1,0.2,1.3]; yd:=[0.103,1.099,0.808,1.897];</Text-field>
</Input>
</Group>
<Group labelreference="L5" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=nops(xd);</Text-field>
</Input>
</Group>
<Group labelreference="L6" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([seq([xd[i],yd[i]],i=1..n)],style=point,symbol=circle,symbolsize=15);</Text-field>
</Input>
</Group>
<Group labelreference="L11" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">datakuva:=%:</Text-field>
</Input>
</Group>
<Group labelreference="L12" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">C:=&lt;&lt;1,1,1,1&gt;|&lt;op(xd)&gt;&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L13" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">M:=Tr(C).C;</Text-field>
</Input>
</Group>
<Group labelreference="L14" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">B:=Tr(C).Vector(yd);</Text-field>
</Input>
</Group>
<Group labelreference="L15" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">ab:=LinearSolve(M,B);</Text-field>
</Input>
</Group>
<Group labelreference="L16" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">suora:=ab[1]+ab[2]*x;</Text-field>
</Input>
</Group>
<Group labelreference="L17" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(plot(suora,x=-2..2,color=blue),datakuva);</Text-field>
</Input>
</Group>
</Section>
<Group labelreference="L23" drawlabel="true">
<Input>
<Text-field style="Author" layout="Author"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Muistellaan aluksi interpolaatioteht\303\244v\303\244\303\244. </Font></Text-field>
<Text-field style="Normal" layout="Normal">Esim:</Text-field>
</Input>
</Group>
<Group labelreference="L24" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=[$1..10];yd:=[1.3,3.5,4.2,5.0,7.0,8.8,10.1,12.5,13.0,15.6];</Text-field>
</Input>
</Group>
<Group labelreference="L25" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot([seq([xd[i],yd[i]],i=1..10)],style=point,symbol=cross,symbolsize=18);</Text-field>
</Input>
</Group>
<Group labelreference="L26" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=interp(xd,yd,x);</Text-field>
</Input>
</Group>
<Group labelreference="L27" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(%%,plot(p,x=0..10,color=blue));</Text-field>
</Input>
</Group>
<Group labelreference="L142" drawlabel="true">
<Input>
<Text-field style="Text" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L28" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Interpolaatio pakottaa polynomin usein voimakkaaseen heilahteluun, jolloin &quot;mets\303\244 katoaa n\303\244kyvist\303\244 puilta&quot;.</Font></Text-field>
<Text-field style="Normal" layout="Normal">**** Kts esim. Runge tai Census  *****</Text-field>
</Input>
</Group>
<Group labelreference="L29" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Luovutaan vaatimuksesta, ett\303\244 polynomin tulisi kulkea datapisteiden kautta. Valitaan alempiasteinen polynomi, joka sopivassa mieless\303\244 approksimoi parhaiten annettua dataa. </Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Kriteeriksi valitaan usein funktiomallin (t\303\244ss\303\244 polynomi) ja datapisteiss\303\244 laskettujen erotuksten neli\303\266summan minimointi.</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">T\303\244t\303\244 kautta menetelm\303\244  liittyy funktioiden \303\244\303\244riarvoteemaan.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L30" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Polynomi-PNS-teht\303\244v\303\244ss\303\244 on annettu datapisteit\303\244 ( </Font><Equation executable="false" style="2D Comment" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUklbXN1YkdGJDYlLUkjbWlHRiQ2JVEieEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1GIzYkLUYvNiVRImlGJ0YyRjUvRjZRJ25vcm1hbEYnLyUvc3Vic2NyaXB0c2hpZnRHUSIwRictSSNtb0dGJDYtUSIsRidGPS8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGNC8lKXN0cmV0Y2h5R0ZILyUqc3ltbWV0cmljR0ZILyUobGFyZ2VvcEdGSC8lLm1vdmFibGVsaW1pdHNHRkgvJSdhY2NlbnRHRkgvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR1EsMC4zMzMzMzMzZW1GJy1GLDYlLUYvNiVRInlGJ0YyRjVGOEY/Rj0=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUklbXN1YkdGJDYlLUkjbWlHRiQ2JVEieEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1GIzYkLUYvNiVRImlGJ0YyRjUvRjZRJ25vcm1hbEYnLyUvc3Vic2NyaXB0c2hpZnRHUSIwRictSSNtb0dGJDYtUSIsRidGPS8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGNC8lKXN0cmV0Y2h5R0ZILyUqc3ltbWV0cmljR0ZILyUobGFyZ2VvcEdGSC8lLm1vdmFibGVsaW1pdHNHRkgvJSdhY2NlbnRHRkgvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR1EsMC4zMzMzMzMzZW1GJy1GLDYlLUYvNiVRInlGJ0YyRjVGOEY/Rj0=</Equation><Font encoding="UTF-8">) (paljon) ja teht\303\244v\303\244n\303\244 on sovittaa esim. polynomi</Font></Text-field>
<Text-field style="Normal" layout="Normal">                    <Equation executable="false" style="2D Comment" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2KEYrLUYjNiYtRiw2JVEicEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RMCZBcHBseUZ1bmN0aW9uO0YnL0Y6USdub3JtYWxGJy8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGRC8lKXN0cmV0Y2h5R0ZELyUqc3ltbWV0cmljR0ZELyUobGFyZ2VvcEdGRC8lLm1vdmFibGVsaW1pdHNHRkQvJSdhY2NlbnRHRkQvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR0ZTLUkobWZlbmNlZEdGJDYkLUYjNiQtRiw2JVEieEYnRjZGOUZARkBGQC1GPTYtUSI9RidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjI3Nzc3NzhlbUYnL0ZVRlxvLUYjNistSSVtc3ViR0YkNiUtRiw2JVEiYkYnRjZGOS1GIzYkLUkjbW5HRiQ2JFEiMEYnRkBGQC8lL3N1YnNjcmlwdHNoaWZ0R0ZbcC1GPTYtUSIrRidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjIyMjIyMjJlbUYnL0ZVRmJwLUYjNiYtRmFvNiVGY28tRiM2JC1GaW82JFEiMUYnRkBGQEZccC1GPTYtUTEmSW52aXNpYmxlVGltZXM7RidGQEZCRkVGR0ZJRktGTUZPRlFGVEZlbkZARl5wLUYjNictRmFvNiVGY28tRiM2JC1GaW82JFEiMkYnRkBGQEZccEZdcS1GIzYkLUklbXN1cEdGJDYlRmVuRmZxLyUxc3VwZXJzY3JpcHRzaGlmdEdGW3BGQEYrRkBGXnAtRiM2Jy1GYW82JUZjby1GIzYkLUZpbzYkUSIzRidGQEZARlxwRl1xLUYjNiQtRlxyNiVGZW5GZnJGXnJGQEYrRkBGK0ZARitGQEYrRkA=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2KEYrLUYjNiYtRiw2JVEicEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RMCZBcHBseUZ1bmN0aW9uO0YnL0Y6USdub3JtYWxGJy8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGRC8lKXN0cmV0Y2h5R0ZELyUqc3ltbWV0cmljR0ZELyUobGFyZ2VvcEdGRC8lLm1vdmFibGVsaW1pdHNHRkQvJSdhY2NlbnRHRkQvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR0ZTLUkobWZlbmNlZEdGJDYkLUYjNiQtRiw2JVEieEYnRjZGOUZARkBGQC1GPTYtUSI9RidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjI3Nzc3NzhlbUYnL0ZVRlxvLUYjNistSSVtc3ViR0YkNiUtRiw2JVEiYkYnRjZGOS1GIzYkLUkjbW5HRiQ2JFEiMEYnRkBGQC8lL3N1YnNjcmlwdHNoaWZ0R0ZbcC1GPTYtUSIrRidGQEZCRkVGR0ZJRktGTUZPL0ZSUSwwLjIyMjIyMjJlbUYnL0ZVRmJwLUYjNiYtRmFvNiVGY28tRiM2JC1GaW82JFEiMUYnRkBGQEZccC1GPTYtUTEmSW52aXNpYmxlVGltZXM7RidGQEZCRkVGR0ZJRktGTUZPRlFGVEZlbkZARl5wLUYjNictRmFvNiVGY28tRiM2JC1GaW82JFEiMkYnRkBGQEZccEZdcS1GIzYkLUklbXN1cEdGJDYlRmVuRmZxLyUxc3VwZXJzY3JpcHRzaGlmdEdGW3BGQEYrRkBGXnAtRiM2Jy1GYW82JUZjby1GIzYkLUZpbzYkUSIzRidGQEZARlxwRl1xLUYjNiQtRlxyNiVGZW5GZnJGXnJGQEYrRkBGK0ZARitGQEYrRkA=</Equation></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">annettuun dataan niin, ett\303\244    </Font><Equation executable="false" style="2D Comment" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2KC1JK211bmRlcm92ZXJHRiQ2Jy1JI21vR0YkNi1RJiZTdW07RicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0Y9LyUpc3RyZXRjaHlHUSV0cnVlRicvJSpzeW1tZXRyaWNHRj0vJShsYXJnZW9wR0ZCLyUubW92YWJsZWxpbWl0c0dGQi8lJ2FjY2VudEdGPS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHUSwwLjE2NjY2NjdlbUYnLUYjNiYtRiw2JVEiaUYnLyUnaXRhbGljR0ZCL0Y5USdpdGFsaWNGJy1GNTYtUSI9RidGOEY7Rj4vRkFGPUZDL0ZGRj0vRkhGPUZJL0ZMUSwwLjI3Nzc3NzhlbUYnL0ZPRltvLUkjbW5HRiQ2JFEiMUYnRjhGOC1GLDYlUSJuRidGVkZYRkkvJSxhY2NlbnR1bmRlckdGPUYrLUknbXNwYWNlR0YkNiYvJSdoZWlnaHRHUSYwLjBleEYnLyUmd2lkdGhHUSQ1LjBGJy8lJmRlcHRoR0ZbcC8lKmxpbmVicmVha0dRJWF1dG9GJy1GIzYkLUklbXN1cEdGJDYlLUkobWZlbmNlZEdGJDYkLUYjNictSSVtc3ViR0YkNiUtRiw2JVEieUYnRlZGWC1GIzYkRlNGOC8lL3N1YnNjcmlwdHNoaWZ0R1EiMEYnLUY1Ni1RKCZtaW51cztGJ0Y4RjtGPkZnbkZDRmhuRmluRkkvRkxRLDAuMjIyMjIyMmVtRicvRk9GXXItRiM2Ji1GLDYlUSJwRidGVkZYLUY1Ni1RMCZBcHBseUZ1bmN0aW9uO0YnRjhGO0Y+RmduRkNGaG5GaW5GSUZLL0ZPRk0tRmpwNiQtRiM2JC1GX3E2JS1GLDYlUSJ4RidGVkZYRmRxRmZxRjhGOEY4RitGOEY4LUZebzYkUSIyRidGOC8lMXN1cGVyc2NyaXB0c2hpZnRHRmhxRjhGK0Y4RitGOA==">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2KC1JK211bmRlcm92ZXJHRiQ2Jy1JI21vR0YkNi1RJiZTdW07RicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0Y9LyUpc3RyZXRjaHlHUSV0cnVlRicvJSpzeW1tZXRyaWNHRj0vJShsYXJnZW9wR0ZCLyUubW92YWJsZWxpbWl0c0dGQi8lJ2FjY2VudEdGPS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHUSwwLjE2NjY2NjdlbUYnLUYjNiYtRiw2JVEiaUYnLyUnaXRhbGljR0ZCL0Y5USdpdGFsaWNGJy1GNTYtUSI9RidGOEY7Rj4vRkFGPUZDL0ZGRj0vRkhGPUZJL0ZMUSwwLjI3Nzc3NzhlbUYnL0ZPRltvLUkjbW5HRiQ2JFEiMUYnRjhGOC1GLDYlUSJuRidGVkZYRkkvJSxhY2NlbnR1bmRlckdGPUYrLUknbXNwYWNlR0YkNiYvJSdoZWlnaHRHUSYwLjBleEYnLyUmd2lkdGhHUSQ1LjBGJy8lJmRlcHRoR0ZbcC8lKmxpbmVicmVha0dRJWF1dG9GJy1GIzYkLUklbXN1cEdGJDYlLUkobWZlbmNlZEdGJDYkLUYjNictSSVtc3ViR0YkNiUtRiw2JVEieUYnRlZGWC1GIzYkRlNGOC8lL3N1YnNjcmlwdHNoaWZ0R1EiMEYnLUY1Ni1RKCZtaW51cztGJ0Y4RjtGPkZnbkZDRmhuRmluRkkvRkxRLDAuMjIyMjIyMmVtRicvRk9GXXItRiM2Ji1GLDYlUSJwRidGVkZYLUY1Ni1RMCZBcHBseUZ1bmN0aW9uO0YnRjhGO0Y+RmduRkNGaG5GaW5GSUZLL0ZPRk0tRmpwNiQtRiM2JC1GX3E2JS1GLDYlUSJ4RidGVkZYRmRxRmZxRjhGOEY4RitGOEY4LUZebzYkUSIyRidGOC8lMXN1cGVyc2NyaXB0c2hpZnRHRmhxRjhGK0Y4RitGOA==</Equation> minimoituu.</Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Yleens\303\244 datapisteiden lkm =n on paljon suurempi kuin polynomin asteluku  m (t\303\244ss\303\244 3).</Font></Text-field>
<Text-field style="Normal" layout="Normal">Jos A on matriisi , jonka alkiot ovat <Equation executable="false" style="2D Comment" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2Ji1JJW1zdWJHRiQ2JS1GLDYlUSJhRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUYjNiYtRiw2JVEiaUYnRjdGOi1JI21vR0YkNi1RIixGJy9GO1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRjkvJSlzdHJldGNoeUdGSi8lKnN5bW1ldHJpY0dGSi8lKGxhcmdlb3BHRkovJS5tb3ZhYmxlbGltaXRzR0ZKLyUnYWNjZW50R0ZKLyUnbHNwYWNlR1EmMC4wZW1GJy8lJ3JzcGFjZUdRLDAuMzMzMzMzM2VtRictRiw2JVEiakYnRjdGOkZGLyUvc3Vic2NyaXB0c2hpZnRHUSIwRictRkM2LVEiPUYnRkZGSC9GTEZKRk1GT0ZRRlNGVS9GWFEsMC4yNzc3Nzc4ZW1GJy9GZW5GYm8tSShtc3Vic3VwR0YkNictRiw2JVEieEYnRjdGOi1GIzYkRj9GRkZnbi8lMXN1cGVyc2NyaXB0c2hpZnRHRlxvRmpuRkZGK0ZG">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRictRiM2Ji1JJW1zdWJHRiQ2JS1GLDYlUSJhRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUYjNiYtRiw2JVEiaUYnRjdGOi1JI21vR0YkNi1RIixGJy9GO1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRjkvJSlzdHJldGNoeUdGSi8lKnN5bW1ldHJpY0dGSi8lKGxhcmdlb3BHRkovJS5tb3ZhYmxlbGltaXRzR0ZKLyUnYWNjZW50R0ZKLyUnbHNwYWNlR1EmMC4wZW1GJy8lJ3JzcGFjZUdRLDAuMzMzMzMzM2VtRictRiw2JVEiakYnRjdGOkZGLyUvc3Vic2NyaXB0c2hpZnRHUSIwRictRkM2LVEiPUYnRkZGSC9GTEZKRk1GT0ZRRlNGVS9GWFEsMC4yNzc3Nzc4ZW1GJy9GZW5GYm8tSShtc3Vic3VwR0YkNictRiw2JVEieEYnRjdGOi1GIzYkRj9GRkZnbi8lMXN1cGVyc2NyaXB0c2hpZnRHRlxvRmpuRkZGK0ZG</Equation><Font encoding="UTF-8"> , i=1..n, j=0..3, saadaan b-kertoimien m\303\244\303\244r\303\244\303\244miseksi ylim\357\277\275\357\277\275r\357\277\275ytyv\357\277\275 yht\357\277\275l\357\277\275systeemi  A b = y, miss\357\277\275 siis A on n x 3 - matriisi.</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">PNS-ratkaisuun p\357\277\275\357\277\275st\357\277\275\357\277\275n kertomalla t\357\277\275m\357\277\275 systeemi A:n transpoosilla, jolloin ratkaistavaksi tulee</Font></Text-field>
<Text-field style="Normal" layout="Normal">systeemi </Text-field>
<Text-field style="Normal" layout="Normal">    (1)          <Equation executable="false" style="Normal" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYzLUklbXN1cEdGJDYlLUkjbWlHRiQ2JVEiQUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1GIzYlLUYvNiVRIlRGJ0YyRjVGMkY1LyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy1JI21vR0YkNi1RJyZzZG90O0YnL0Y2USdub3JtYWxGJy8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGSC8lKXN0cmV0Y2h5R0ZILyUqc3ltbWV0cmljR0ZILyUobGFyZ2VvcEdGSC8lLm1vdmFibGVsaW1pdHNHRkgvJSdhY2NlbnRHRkgvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR0ZXRi5GQC1GLzYlUSJiRidGMkY1LUZBNi1RIn5GJ0ZERkZGSUZLRk1GT0ZRRlNGVUZYLUZBNi1RIj1GJ0ZERkZGSUZLRk1GT0ZRRlMvRlZRLDAuMjc3Nzc3OGVtRicvRllGXm9GZ25GK0ZALUYvNiVRInlGJ0YyRjVGZ25GZ25GZ25GZ24tSShtZmVuY2VkR0YkNiQtRiM2LUYrRmduLUYvNiVRI29uRidGMkY1RmduRi4tRkE2LVEiOkYnRkRGRkZJRktGTUZPRlFGU0Zdb0Zfby1GLzYlUSJuRidGMkY1RmduLUYvNiVRK3RyYW5zcG9vc2lGJ0YyRjUtRkE2LVEiLkYnRkRGRkZJRktGTUZPRlFGU0ZVRlhGREZERkQ=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYzLUklbXN1cEdGJDYlLUkjbWlHRiQ2JVEiQUYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1GIzYlLUYvNiVRIlRGJ0YyRjVGMkY1LyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy1JI21vR0YkNi1RJyZzZG90O0YnL0Y2USdub3JtYWxGJy8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGSC8lKXN0cmV0Y2h5R0ZILyUqc3ltbWV0cmljR0ZILyUobGFyZ2VvcEdGSC8lLm1vdmFibGVsaW1pdHNHRkgvJSdhY2NlbnRHRkgvJSdsc3BhY2VHUSYwLjBlbUYnLyUncnNwYWNlR0ZXRi5GQC1GLzYlUSJiRidGMkY1LUZBNi1RIn5GJ0ZERkZGSUZLRk1GT0ZRRlNGVUZYLUZBNi1RIj1GJ0ZERkZGSUZLRk1GT0ZRRlMvRlZRLDAuMjc3Nzc3OGVtRicvRllGXm9GZ25GK0ZALUYvNiVRInlGJ0YyRjVGZ25GZ25GZ25GZ24tSShtZmVuY2VkR0YkNiQtRiM2LUYrRmduLUYvNiVRI29uRidGMkY1RmduRi4tRkE2LVEiOkYnRkRGRkZJRktGTUZPRlFGU0Zdb0Zfby1GLzYlUSJuRidGMkY1RmduLUYvNiVRK3RyYW5zcG9vc2lGJ0YyRjUtRkE2LVEiLkYnRkRGRkZJRktGTUZPRlFGU0ZVRlhGREZERkQ=</Equation></Text-field>
<Text-field style="Normal" layout="Normal"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">(T\303\244m\303\244 johdetaan joko osittaisderivoimalla tai ortogonaaliprojektioon perustuvalla geometrisluonteisella</Font></Text-field>
<Text-field style="Normal" layout="Normal">argumentilla.)</Text-field>
<Text-field style="Normal" layout="Normal"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Jos tuntemattomia kertoimia on yht\303\244 monta kuin datapisteit\303\244 (polynomin asteluku = n-1), niin systeemill\303\244</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">A b = y on yksik\303\244sitteinen ratkaisu, mik\303\244li x-pisteet ovat erillisi\303\244. T\303\244ll\303\266in on kyse interpolaatiopolynomista.</Font></Text-field>
<Text-field style="Normal" layout="Normal"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Yll\357\277\275 oleva ratkaisu voidaan Maplella tehd\357\277\275 rakentamalla matriisi A ja ratkaisemalla systeemi  (1) .</Font></Text-field>
<Text-field style="Normal" layout="Normal">Maplen <Font bold="true" style="Text">linalg</Font><Font encoding="UTF-8">:ssa on my\357\277\275</Font><Font style="Maple Input" executable="false">leastsqrs</Font><Font encoding="UTF-8">- funktio, jolle annetaan pelkk\357\277\275 A - matriisi ja datapisteet, joka</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">siis ratkaisee ylim\357\277\275\357\277\275r\357\277\275ytyv\357\277\275n systeemin  A b = y  PNS-mieless\357\277\275</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">T\357\277\275m\357\277\275n lis\357\277\275ksi Maplen </Font><Font bold="true" style="Text">stats</Font><Font encoding="UTF-8">-pakkauksessa on viel\357\277\275 automaattisempi funktio </Font><Font bold="true" style="Text">fit[leastsquare]</Font>, joka tekee</Text-field>
<Text-field style="Normal" layout="Normal">kaiken puolestamme (siis ei tarvitse muodostaa edes kerroinmatriisia).</Text-field>
<Text-field style="Normal" layout="Normal"></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Suosimme kahta ensin mainittua tapaa ensinn\357\277\275kin opin kannalta, mutta my\357\277\275s siksi, ett\357\277\275 viimemainittu on syntaksiltaan outo ilmestys.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L31" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L32" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:with(LinearAlgebra):with(linalg):with(plots):#with(stats):</Text-field>
</Input>
</Group>
<Group labelreference="L33" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">alias(Tr=Transpose,Van=VandermondeMatrix):</Text-field>
</Input>
</Group>
<Group labelreference="L34" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Esim.</Text-field></Title>
<Text-field style="Normal" layout="Normal">Sovita 2. asteen polynomi annettuun dataan</Text-field>
<Group labelreference="L35" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=[8,10,12,16,20,30,40,60,100];
yd:=[0.88,1.22,1.64,2.72,3.96,7.66,11.96,21.56,43.16];</Text-field>
</Input>
</Group>
<Group labelreference="L36" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=nops(xd);</Text-field>
</Input>
</Group>
<Group labelreference="L37" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">C:=Van(xd,n,3); # tai # Matrix((i,j)-&gt;xd[i]^(j-1),n,3);</Text-field>
</Input>
</Group>
<Group labelreference="L38" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">M:=Tr(C).C;</Text-field>
</Input>
</Group>
<Group labelreference="L39" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">b:=Tr(C).Vector(yd);</Text-field>
</Input>
</Group>
<Group labelreference="L40" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">a:=LinearSolve(M,b);</Text-field>
</Input>
</Group>
<Group labelreference="L41" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=add(a[i]*x^(i-1),i=1..3);</Text-field>
</Input>
</Group>
<Group labelreference="L42" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">datakuva:=plot([seq([xd[i],yd[i]],i=1..n)],style=point,symbol=cross,symbolsize=18):</Text-field>
</Input>
</Group>
<Group labelreference="L43" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(plot(p,x=7..100,color=blue),datakuva);</Text-field>
</Input>
</Group>
<Group labelreference="L49" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal">Tarkistetaan linalg-pakkauksen <Font bold="true" style="Text">leastsqrs</Font>-funktiolla:</Text-field>
</Input>
</Group>
<Group labelreference="L50" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">aa:=leastsqrs(C,yd);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1"><Font encoding="UTF-8">H\357\277\275iri\357\277\275alttius</Font></Text-field></Title>
<Group labelreference="L51" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=5: m:=n-2:x:=[$1..n];</Text-field>
</Input>
</Group>
<Group labelreference="L52" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">C:=Van(x,n,m);cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L53" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=6: m:=n-2:x:=[$1..n]:C:=Van(x,n,m):cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L54" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=10: m:=n-2:x:=[$1..n]:C:=Van(x,n,m):cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L55" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">cond(M) </Text-field>
</Input>
</Group>
<Group labelreference="L56" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">mittaa sensitiivisyytt\357\277\275 virheille (datan virheille ja py\357\277\275ristysvirheille).</Font></Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Normaaliyht\357\277\275l\357\277\275ratkaisun varjopuoli on suuri h\357\277\275ri\357\277\275alttius, jos teht\357\277\275v\357\277\275n koko on v\357\277\275h\357\277\275nk\357\277\275\357\277\275n suuri.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L57" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=6: m:=2:x:=[$1..n]:C:=Van(x,n,m):cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L58" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=20: m:=2:x:=[$1..n]:C:=Van(x,n,m):cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L59" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=20: m:=3:x:=[$1..n]:C:=Van(x,n,m):cond(Tr(C).C): evalf(%);</Text-field>
</Input>
</Group>
<Group labelreference="L60" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Paremmat menetelm\357\277\275t perustuvat ortogonalisointiin tai ns. singulaariarvohajoitelmaan.</Font></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Esim. 1</Text-field></Title>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Muodosta PNS-suora annettuun pisteist\357\277\275\357\277\275</Font></Text-field>
<Group labelreference="L61" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Plista:=[[2.8,30],[2.9,26],[3,33],[3.1,31],[3.2,33],[3.2,35],[3.2,37],[3.3,36],[3.4,33]];</Text-field>
</Input>
</Group>
<Group labelreference="L62" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">Matrix(Plista);</Text-field>
</Input>
</Group>
<Group labelreference="L63" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(Plista);</Text-field>
</Input>
</Group>
<Group labelreference="L64" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">gp:=plot(Plista,style=POINT,symbol=circle):</Text-field>
</Input>
</Group>
<Group labelreference="L65" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=map(lista-&gt;lista[1],Plista);
n:=nops(xd):yd:=map(lista-&gt;lista[2],Plista);</Text-field>
</Input>
</Group>
<Group labelreference="L66" 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">A:=&lt;Vector([1$n])| Vector(xd)&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L68" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Jos haluttaisiin jatkaa sarakkeittain latomista (ja siis korkeampiasteisten polynomien sovitusta), voitaisiin edet\357\277\275 t\357\277\275h\357\277\275n tapaan: (Alempana on kuitenkin yleisp\357\277\275tev\357\277\275mpi\357\277\275 keinoja.)</Font></Text-field>
</Input>
</Group>
<Group labelreference="L69" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">&lt;Vector([1$n])| Vector(xd) | Vector(map(t-&gt;t^2,xd))&gt;;</Text-field>
</Input>
</Group>
<Group labelreference="L70" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Tehd\357\277\275\357\277\275n aluksi &quot;teoriaa&quot; mukaillen:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L71" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L72" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">kertoimet:=LinearSolve(Tr(A).A,Tr(A).Vector(yd));</Text-field>
</Input>
</Group>
<Group labelreference="L73" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Suoremmin saadaan n\357\277\275in:</Font></Text-field>
</Input>
</Group>
<Group labelreference="L74" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">leastsqrs(A,Vector(yd));</Text-field>
</Input>
</Group>
<Text-field style="Normal" layout="Normal"></Text-field>
<Group labelreference="L75" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">suora:=innerprod(kertoimet,&lt;1,x&gt;);</Text-field>
</Input>
</Group>
<Group labelreference="L76" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">gs:=plot(suora,x=2.8..3.5,color=blue):</Text-field>
</Input>
</Group>
<Group labelreference="L77" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L78" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display({gs,gp});</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1">Esim. 2</Text-field></Title>
<Text-field style="Normal" layout="Normal">Sovita a) 2. asteen PNS-polynomi ja b) interpolaatiopolynomi</Text-field>
<Group labelreference="L79" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">P:=[[1.4,7400],[1.8,7500],[2.4,7600],[3,7500],[4,7200]];</Text-field>
</Input>
</Group>
<Group labelreference="L80" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=map(lis-&gt;lis[1],P);
yd:=map(lis-&gt;lis[2],P);</Text-field>
</Input>
</Group>
<Group labelreference="L81" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Jos tuo n\357\277\275ytt\357\277\275\357\277\275 oudolta, voitaisiin tehd\357\277\275 funktiot  </Font><Font style="Maple Input" executable="false">poimieka:=x-&gt;x[1]; poimitoka:=x-&gt;x[2]; </Font>ja suorittaa <Font style="Maple Input" executable="false">xd:=map(poimieka,P);yd:=map(poimitoka,P);</Font></Text-field>
</Input>
</Group>
<Group labelreference="L82" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">T\357\277\275ss\357\277\275 on k\357\277\275tev\357\277\275 ja yleisp\357\277\275tev\357\277\275 tapa muodostaa matriisi.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L83" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">C:=Matrix(5,3,(i,j)-&gt;xd[i]^(j-1));</Text-field>
</Input>
</Group>
<Group labelreference="L84" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Toisaalta yleissivistykseen kuuluu my\357\277\275s tiet\357\277\275\357\277\275, ett\357\277\275 kyseess\357\277\275 on ns. Vandermonden matriisi. Siihenkin</Font></Text-field>
<Text-field style="Normal" layout="Normal">on linalg:ssa valmis funktio.</Text-field>
</Input>
</Group>
<Group labelreference="L85" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Font encoding="UTF-8">Matrix(vandermonde(xd)):%[1..5,1..3];  # Vanhat tietorakenteet muutettava uusiksi (Matrix), jotta k\357\277\275tev\357\277\275t poimimispiirteet yms. toimisivat.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L86" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">K\357\277\275ytet\357\277\275\357\277\275n nyt sit\357\277\275 keskimm\357\277\275ist\357\277\275 &quot;harmaata laatikkoa&quot;</Font></Text-field>
</Input>
</Group>
<Group labelreference="L87" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">kertoimet:=leastsqrs(C,yd);</Text-field>
</Input>
</Group>
<Group labelreference="L88" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">poly2:=innerprod(kertoimet,[1,x,x^2]);</Text-field>
</Input>
</Group>
<Group labelreference="L89" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(plot(P,style=point,symbol=circle,color=black),plot(poly2,x=1.3..4.2));</Text-field>
</Input>
</Group>
<Group labelreference="L90" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L91" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal">b)</Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Kyseess\357\277\275 on interpolaatioply, jonka asteluku = datapisteiden lkm -1 = 4. No siihen l\357\277\275ytyy taas ihan</Font></Text-field>
<Text-field style="Normal" layout="Normal">valmiskin funktio: </Text-field>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">(Jos ratkaistaisiin LSQ-teht\357\277\275v\357\277\275n\357\277\275, matriisina olisi koko Vandermonde (transposilla kertominen voitaisiin &quot;supistaa pois&quot;).)</Font></Text-field>
<Text-field style="Normal" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L92" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">intpol:=interp(xd,yd,x);</Text-field>
</Input>
</Group>
<Group labelreference="L93" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(plot(intpol,x=1.3..4.2,color=blue),plot(P,style=point,symbol=circle,color=black),plot(poly2,x=1.3..4.2,color=gray));</Text-field>
</Input>
</Group>
<Group labelreference="L94" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1"><Font encoding="UTF-8">SVD:n k\357\277\275ytt\357\277\275 LSQ:ssa</Font></Text-field></Title>
<Text-field style="Normal" layout="Normal"></Text-field>
<Section collapsed="false" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 2" layout="Heading 2"><Font encoding="UTF-8">Esim: Vanha tuttu Census (vrt. harj9lv.mws, jossa normaaliyht\357\277\275l\357\277\275ill\357\277\275, skaalaten ja ilman)</Font></Text-field></Title>
<Text-field style="Normal" layout="Normal"></Text-field>
<Group labelreference="L176" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JVEocmVzdGFydEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIjpGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTC8lK2ZvcmVncm91bmRHUShbMCwwLDBdRicvJStleGVjdXRhYmxlR0Y9Rjk=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYkLUkjbWlHRiQ2JVEocmVzdGFydEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RIjpGJy9GM1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRj0vJSlzdHJldGNoeUdGPS8lKnN5bW1ldHJpY0dGPS8lKGxhcmdlb3BHRj0vJS5tb3ZhYmxlbGltaXRzR0Y9LyUnYWNjZW50R0Y9LyUnbHNwYWNlR1EsMC4yNzc3Nzc4ZW1GJy8lJ3JzcGFjZUdGTA==</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L168" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="with(LinearAlgebra):" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYrLUkjbWlHRiQ2JVEld2l0aEYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JKG1mZW5jZWRHRiQ2JC1GIzYmLUYsNiVRLkxpbmVhckFsZ2VicmFGJ0YvRjIvJStmb3JlZ3JvdW5kR1EoWzAsMCwwXUYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvRjNRJ25vcm1hbEYnRkMtSSNtb0dGJDYtUSI6RidGQy8lJmZlbmNlR0ZCLyUqc2VwYXJhdG9yR0ZCLyUpc3RyZXRjaHlHRkIvJSpzeW1tZXRyaWNHRkIvJShsYXJnZW9wR0ZCLyUubW92YWJsZWxpbWl0c0dGQi8lJ2FjY2VudEdGQi8lJ2xzcGFjZUdRLDAuMjc3Nzc3OGVtRicvJSdyc3BhY2VHRlktRiw2JVEmYWxpYXNGJ0YvRjItRjY2JC1GIzYoLUYsNiVRI1RyRidGL0YyLUZGNi1RIj1GJ0ZDRklGS0ZNRk9GUUZTRlVGV0ZaLUYsNiVRKlRyYW5zcG9zZUYnRi9GMkY9RkBGQ0ZDRkVGPUZARkM=">QyYtSSV3aXRoRzYkJSpwcm90ZWN0ZWRHSShfc3lzbGliRzYiNiNJLkxpbmVhckFsZ2VicmFHRiUhIiItSSZhbGlhc0dGJjYjL0kjVHJHRihJKlRyYW5zcG9zZUdGKEYr</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L173" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRicvJStmb3JlZ3JvdW5kR1EoWzAsMCwwXUYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn">JSFH</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L95" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">xd:=[1940, 1950, 1960, 1970, 1980, 1990];
yd:=[132.165, 151.326, 179.323, 203.302, 226.542, 249.633];
ydv:=Vector(yd):
Pisteet:=[seq([xd[i],yd[i]],i=1..nops(xd))];</Text-field>
</Input>
</Group>
<Group labelreference="L96" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">m:=nops(xd);</Text-field>
</Input>
</Group>
<Group labelreference="L97" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Tehd\357\277\275\357\277\275n tyhm\357\277\275ll\357\277\275 tavalla sik\357\277\275li, ett\357\277\275 ei skaalata, mutta \357\277\275lykk\357\277\275\357\277\275ll\357\277\275 sik\357\277\275li, ett\357\277\275 k\357\277\275ytet\357\277\275\357\277\275n SVD:t\357\277\275</Font></Text-field>
</Input>
</Group>
<Group labelreference="L98" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">A:=VandermondeMatrix(xd,m,3);</Text-field>
</Input>
</Group>
<Group labelreference="L99" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">U,S,Vt:=SingularValues(evalf(A),output=['U','S','Vt']);</Text-field>
</Input>
</Group>
<Group labelreference="L175" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYmLUkjbWlHRiQ2I1EhRicvJStmb3JlZ3JvdW5kR1EoWzAsMCwwXUYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn">JSFH</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L100" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L101" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">S;</Text-field>
</Input>
</Group>
<Group labelreference="L102" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">S[1]/S[3];</Text-field>
</Input>
</Group>
<Group labelreference="L103" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Hyvin h\357\277\275iri\357\277\275altis. L\357\277\275hes LRV sarakkeet A-matriisissa</Font></Text-field>
</Input>
</Group>
<Group labelreference="L104" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">d:=Tr(U).ydv;</Text-field>
</Input>
</Group>
<Group labelreference="L105" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">z:=seq(d[j]/S[j],j=1..3);z:=Vector([z]);</Text-field>
</Input>
</Group>
<Group labelreference="L106" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">c:=V.z;</Text-field>
</Input>
</Group>
<Group labelreference="L107" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">neliosumma:=add(d[i]^2,i=4..m);</Text-field>
</Input>
</Group>
<Group labelreference="L108" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">q:=&lt;1 | x | x^2&gt;.c;</Text-field>
</Input>
</Group>
<Group labelreference="L109" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Aseteteaan pienin singulaariarvo 0:ksi, t\357\277\275ll\357\277\275in h\357\277\275iri\357\277\275luku</Font></Text-field>
</Input>
</Group>
<Group labelreference="L110" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">S[1]/S[2];</Text-field>
</Input>
</Group>
<Group labelreference="L111" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">on jo paljon siedett\357\277\275v\357\277\275mpi.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L112" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">z;</Text-field>
</Input>
</Group>
<Group labelreference="L113" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">T\357\277\275m\357\277\275 merkitsee, ett\357\277\275 kolmas z-komponentti pannaan 0:ksi (se saadaan valita mielivaltaisesti, mutta t\357\277\275m\357\277\275 on tapana).</Font></Text-field>
</Input>
</Group>
<Group labelreference="L114" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">z[3]:=0;</Text-field>
</Input>
</Group>
<Group labelreference="L115" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">z;</Text-field>
</Input>
</Group>
<Group labelreference="L177" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal"><Equation executable="true" style="2D Input" input-equation="V := Tr(Vt);" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYqLUkjbWlHRiQ2JVEiVkYnLyUnaXRhbGljR1EldHJ1ZUYnLyUsbWF0aHZhcmlhbnRHUSdpdGFsaWNGJy1JI21vR0YkNi1RKiZjb2xvbmVxO0YnL0YzUSdub3JtYWxGJy8lJmZlbmNlR1EmZmFsc2VGJy8lKnNlcGFyYXRvckdGPS8lKXN0cmV0Y2h5R0Y9LyUqc3ltbWV0cmljR0Y9LyUobGFyZ2VvcEdGPS8lLm1vdmFibGVsaW1pdHNHRj0vJSdhY2NlbnRHRj0vJSdsc3BhY2VHUSwwLjI3Nzc3NzhlbUYnLyUncnNwYWNlR0ZMLUYsNiVRI1RyRidGL0YyLUkobWZlbmNlZEdGJDYkLUYjNiYtRiw2JVEjVnRGJ0YvRjIvJStmb3JlZ3JvdW5kR1EoWzAsMCwwXUYnLyUrZXhlY3V0YWJsZUdGPUY5RjktRjY2LVEiO0YnRjlGOy9GP0YxRkBGQkZERkZGSC9GS1EmMC4wZW1GJ0ZNRlpGZ25GOQ==">QyQ+SSJWRzYiLUkjVHJHRiU2I0kjVnRHRiUiIiI=</Equation></Text-field>
</Input>
</Group>
<Group labelreference="L116" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">c:=V.z;</Text-field>
</Input>
</Group>
<Group labelreference="L117" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=&lt;1 | x | x^2&gt;.c;</Text-field>
</Input>
</Group>
<Group labelreference="L118" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Kertoimet muuttuivat ihan toisiksi, mutta funktiot (polynomit) ovat varsin tarkasti samat ko v\357\277\275lill\357\277\275</Font></Text-field>
</Input>
</Group>
<Group labelreference="L119" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plots[display](plot(Pisteet,style=point,symbol=circle,color=black),plot([q,p],x=1900..2000,color=[blue,red]));</Text-field>
</Input>
</Group>
<Group labelreference="L120" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(q-p,x=1900..2000);</Text-field>
</Input>
</Group>
<Group labelreference="L121" drawlabel="true">
<Input>
<Text-field prompt="&gt; " style="Maple Input" layout="Normal">neliosumma:=add(d[i]^2,i=3..m);</Text-field>
</Input>
</Group>
<Group labelreference="L122" drawlabel="true">
<Input>
<Text-field style="Normal" layout="Normal"><Font encoding="UTF-8">Neli\357\277\275summa kasvoi hieman, mutta h\357\277\275iri\357\277\275alttius v\357\277\275heni paljon.</Font></Text-field>
</Input>
</Group>
<Group labelreference="L123" 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"></Text-field></Title>
</Section>
</Section>
<Section collapsed="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title>
<Text-field style="Heading 1" layout="Heading 1"></Text-field></Title>
</Section>
</Worksheet>