﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6633.20513"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <identity>
      <id>d65d6fb6-c29c-4a85-821a-b028853311d5</id>
      <revision>8</revision>
    </identity>
    <calculation>
      <precision>3</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>true</significantDigitsMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="False" printAreas="True" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="39" bottom="39" />
      <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="0.99.6633.20513" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.6633.20513" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Special Functions" version="1.11.6633.20514" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="MaximaPlugin" version="1.98.6519.13993" guid="44011c1e-5d0d-4533-8e68-e32b5badce41" />
      <assembly name="Text Region" version="1.10.6633.20515" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Statistical Tools" version="1.0.6599.21762" guid="76f6e9f5-ac86-4ffb-9e4d-284c8daecaf9" />
    </dependencies>
  </settings>
  <region id="0" left="27" top="18" width="127" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Random numbers</p>
    </text>
  </region>
  <region id="1" left="405" top="18" width="139" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">D</e>
        <e type="operand">10000</e>
        <e type="function" args="1">Random</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="2" left="405" top="45" width="174" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Dr</e>
        <e type="operand">D</e>
        <e type="operand">4</e>
        <e type="function" args="2">round</e>
        <e type="function" args="1">vectorize</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="3" left="27" top="54" width="240" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Round the numbes to 4 digits</p>
    </text>
  </region>
  <region id="4" left="405" top="81" width="194" height="38" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="15">
      <input>
        <e type="operand">S.0</e>
        <e type="operand">Dr</e>
        <e type="function" args="1">sum</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">4999.9443</e>
      </result>
    </math>
  </region>
  <region id="5" left="27" top="90" width="370" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Sum of the numbers without further rounding </p>
    </text>
  </region>
  <region id="6" left="405" top="135" width="342" height="38" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="15">
      <input>
        <e type="operand">S.away</e>
        <e type="operand">Dr</e>
        <e type="operand">3</e>
        <e type="function" args="2">round</e>
        <e type="function" args="1">vectorize</e>
        <e type="function" args="1">sum</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">5000.46300000001</e>
      </result>
    </math>
  </region>
  <region id="7" left="27" top="144" width="341" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Sum of the numbers with further roundingto 3 digits away from zero</p>
    </text>
  </region>
  <region id="8" left="405" top="180" width="147" height="53" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">S.away</e>
        <e type="operand">S.0</e>
        <e type="operator" args="2">-</e>
        <e type="operand">S.0</e>
        <e type="operator" args="2">/</e>
      </input>
      <contract>
        <e type="operand" style="unit">ppm</e>
      </contract>
      <result action="numeric">
        <e type="operand">104</e>
      </result>
    </math>
  </region>
  <region id="9" left="405" top="225" width="346" height="55" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="15">
      <input>
        <e type="operand">S.even</e>
        <e type="operand">Dr</e>
        <e type="operand">1000</e>
        <e type="operator" args="2">*</e>
        <e type="function" args="1">round</e>
        <e type="function" args="1">Maxima</e>
        <e type="function" args="1">sum</e>
        <e type="operand">1000</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">4999.975</e>
      </result>
    </math>
  </region>
  <region id="10" left="27" top="234" width="341" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Sum of the numbers with further roundingto 3 digits to even</p>
    </text>
  </region>
  <region id="11" left="405" top="279" width="155" height="53" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">S.even</e>
        <e type="operand">S.0</e>
        <e type="operator" args="2">-</e>
        <e type="operand">S.0</e>
        <e type="operator" args="2">/</e>
      </input>
      <contract>
        <e type="operand" style="unit">ppm</e>
      </contract>
      <result action="numeric">
        <e type="operand">6.14</e>
      </result>
    </math>
  </region>
  <region id="12" left="27" top="333" width="651" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>The error introduced by round to even is much smaller than that for round awayfrom zero. Also, the error for round away from zero is always positive whereasthat of round to even may be positive or negative.</p>
    </text>
  </region>
  <region id="13" left="27" top="396" width="669" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="ger">
      <p>Note that intermediate rounding to 4 digits is essential for the demo.The more digits you cut away the less is the difference between the two roundingoptions. In the demo, just one digit is cut away.</p>
    </text>
  </region>
</regions>