﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="1.0.8348.30405"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>fcdbabfc-e984-44a7-a644-e0cc0312d005</id>
      <revision>27</revision>
    </identity>
    <metadata lang="eng">
      <author>zhkz</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="2" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="49" bottom="49" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="1.0.8348.30405" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.8348.30405" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.8051.30522" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.8348.30405" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.8348.30405" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="X-Y Plot Region (JXCharts)" version="0.2.8209.38826" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="0" width="133" height="407" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">datax</e>
          <e type="operand">0.0265</e>
          <e type="operand">0.0778</e>
          <e type="operand">0.1291</e>
          <e type="operand">0.1804</e>
          <e type="operand">0.2317</e>
          <e type="operand">0.283</e>
          <e type="operand">0.3343</e>
          <e type="operand">0.3856</e>
          <e type="operand">0.4369</e>
          <e type="operand">0.4882</e>
          <e type="operand">0.5395</e>
          <e type="operand">0.5908</e>
          <e type="operand">0.6421</e>
          <e type="operand">0.6934</e>
          <e type="operand">0.7447</e>
          <e type="operand">0.796</e>
          <e type="operand">0.8473</e>
          <e type="operand">0.8986</e>
          <e type="operand">0.9499</e>
          <e type="operand">1.0012</e>
          <e type="operand">1.0525</e>
          <e type="operand">1.1038</e>
          <e type="operand">22</e>
          <e type="operand">1</e>
          <e type="function" args="24">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="153" top="0" width="117" height="407" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">datay</e>
          <e type="operand">1016</e>
          <e type="operand">1014</e>
          <e type="operand">1002</e>
          <e type="operand">996</e>
          <e type="operand">970</e>
          <e type="operand">906</e>
          <e type="operand">893</e>
          <e type="operand">875</e>
          <e type="operand">850</e>
          <e type="operand">779</e>
          <e type="operand">775</e>
          <e type="operand">726</e>
          <e type="operand">706</e>
          <e type="operand">675</e>
          <e type="operand">661</e>
          <e type="operand">647</e>
          <e type="operand">611</e>
          <e type="operand">591</e>
          <e type="operand">588</e>
          <e type="operand">575</e>
          <e type="operand">558</e>
          <e type="operand">553</e>
          <e type="operand">22</e>
          <e type="operand">1</e>
          <e type="function" args="24">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="288" top="225" width="229" height="26" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">data</e>
          <e type="operand">datax</e>
          <e type="operand">datay</e>
          <e type="function" args="2">augment</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="243" top="432" width="54" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">nb</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="324" top="432" width="54" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">nc</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="441" width="173" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Extract separate data sets:</p>
        </content>
      </text>
    </region>
    <region left="252" top="450" width="215" height="222" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">datax</e>
          <e type="function" args="1">length</e>
          <e type="function" args="2">range</e>
          <e type="operand">datax</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">0.6</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">nb</e>
          <e type="operand">nb</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">xb</e>
          <e type="operand">nb</e>
          <e type="function" args="2">el</e>
          <e type="operand">datax</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">yb</e>
          <e type="operand">nb</e>
          <e type="function" args="2">el</e>
          <e type="operand">datay</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="operand">nc</e>
          <e type="operand">nc</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">xc</e>
          <e type="operand">nc</e>
          <e type="function" args="2">el</e>
          <e type="operand">datax</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">yc</e>
          <e type="operand">nc</e>
          <e type="function" args="2">el</e>
          <e type="operand">datay</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
        </input>
      </math>
    </region>
    <region left="45" top="693" width="150" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Define matrix functions</p>
        </content>
      </text>
    </region>
    <region left="18" top="720" width="344" height="201" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">x</e>
          <e type="function" args="2">M</e>
          <e type="operand">N</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">4</e>
          <e type="operator" args="2">^</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">3</e>
          <e type="operand">3</e>
          <e type="function" args="11">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="414" top="720" width="229" height="201" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">N</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="3">V</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">*</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">y</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">x</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N</e>
          <e type="function" args="4">sum</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="1107" width="193" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Least squares fit for both sets:</p>
        </content>
      </text>
    </region>
    <region left="54" top="1152" width="269" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b1</e>
          <e type="operand">b2</e>
          <e type="operand">b3</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">nb</e>
          <e type="operand">xb</e>
          <e type="function" args="2">M</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operand">nb</e>
          <e type="operand">xb</e>
          <e type="operand">yb</e>
          <e type="function" args="3">V</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="1152" width="151" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">b1</e>
          <e type="operand">b2</e>
          <e type="operand">b3</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </input>
        <result action="numeric">
          <e type="operand">1033.4164</e>
          <e type="operand">216.1802</e>
          <e type="operator" args="1">-</e>
          <e type="operand">525.3724</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="54" top="1260" width="269" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">c1</e>
          <e type="operand">c2</e>
          <e type="operand">c3</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">nc</e>
          <e type="operand">xc</e>
          <e type="function" args="2">M</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operand">nc</e>
          <e type="operand">xc</e>
          <e type="operand">yc</e>
          <e type="function" args="3">V</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="360" top="1260" width="159" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">c1</e>
          <e type="operand">c2</e>
          <e type="operand">c3</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </input>
        <result action="numeric">
          <e type="operand">1196.4107</e>
          <e type="operand">1014.5151</e>
          <e type="operator" args="1">-</e>
          <e type="operand">390.0593</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="225" top="1350" width="300" height="61" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">y</e>
          <e type="operand">b1</e>
          <e type="operand">b2</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">b3</e>
          <e type="operand">x</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="operand">0.6</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">c1</e>
          <e type="operand">c2</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">c3</e>
          <e type="operand">x</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="3">cases</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="45" top="1359" width="162" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Define quadratic function</p>
        </content>
      </text>
    </region>
    <region left="63" top="1449" width="104" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Plot data vs fits</p>
        </content>
      </text>
    </region>
    <region left="72" top="1467" width="511" height="307" color="#000000" bgColor="#ffffff" fontSize="10">
      <xyplot width="501" height="299" points="100" name="XYPlot1">
        <chartstyle backcolor="White" bordercolor="Black" />
        <propertiessource index="1" sourcetype="PropertyGrid" />
        <grid gridcolor="LightGray" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" isy2grid="false" />
        <xaxes xmin="0" xmax="1.5" xtick="0.2" visible="True" decimalplaces="3" numberformat="General" />
        <yaxes ymin="0" ymax="1100" ytick="300" visible="True" decimalplaces="3" numberformat="General" />
        <y2axes isy2axis="false" y2min="-1" y2max="1" y2tick="0.5" visible="True" decimalplaces="3" numberformat="General" />
        <title2d title="XYPlot1 " titlefont="Arial, 10pt" titlefontcolor="Black" />
        <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Arial, 8pt" tickfontcolor="Black" xlabel="x" ylabel="y" y2label="y2" />
        <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="SouthEast" textcolor="Black" />
        <traces>
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Transparent" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="Diamond" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Red" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        </traces>
        <input>
          <e type="operand">data</e>
          <e type="operand">y</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </xyplot>
    </region>
  </regions>
</worksheet>