﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6839.38235"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <identity>
      <id>7b313f25-4e9d-41e0-ad6c-d166d52deb2c</id>
      <revision>126</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <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.6839.38235" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.6839.38235" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="PictureRegion" version="1.10.6839.38235" guid="06b5df04-393e-4be7-9107-305196fcb861" />
      <assembly name="Custom Functions" version="1.1.6831.35137" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.6839.38235" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.6839.38235" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.11.6839.38235" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <region id="0" top="9" color="#000000" bgColor="#ffffff">
    <area collapsed="false">
      <title lang="spa">
        <p>round</p>
      </title>
    </area>
    <region id="1" top="36" color="#000000" bgColor="#ffffff">
      <area collapsed="true">
        <title lang="spa">
          <p>round utilities</p>
        </title>
      </area>
      <region id="2" left="54" top="63" width="584" height="138" color="#000000" bgColor="#ffffff" fontSize="10">
        <math>
          <description active="true" position="Top" lang="spa">
            <p>Round Plot utility.</p>
          </description>
          <input>
            <e type="operand">1</e>
            <e type="function" args="1">φ#</e>
            <e type="operand">x.1</e>
            <e type="operand">x.2</e>
            <e type="operand">d</e>
            <e type="function" args="4">RPlot</e>
            <e type="operand">M</e>
            <e type="operand">0</e>
            <e type="operand">5</e>
            <e type="function" args="2">matrix</e>
            <e type="operator" args="2">:</e>
            <e type="operand">α</e>
            <e type="operand">0.25</e>
            <e type="operator" args="2">:</e>
            <e type="operand">δ</e>
            <e type="operand">0.2</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">3</e>
            <e type="function" args="5">mat</e>
            <e type="operand">x</e>
            <e type="operand">x.1</e>
            <e type="operand">x.2</e>
            <e type="function" args="2">range</e>
            <e type="operand">M</e>
            <e type="operand">M</e>
            <e type="operand">x</e>
            <e type="operand">d</e>
            <e type="operator" args="2">+</e>
            <e type="operand">x</e>
            <e type="operand">d</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="1">φ#</e>
            <e type="operand" style="string">.</e>
            <e type="operand">14</e>
            <e type="operand" style="string">blue</e>
            <e type="operand">1</e>
            <e type="operand">5</e>
            <e type="function" args="7">mat</e>
            <e type="function" args="2">stack</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">X</e>
            <e type="operand">x.1</e>
            <e type="operand">α</e>
            <e type="operator" args="2">-</e>
            <e type="bracket">(</e>
            <e type="operand">x.2</e>
            <e type="operand">α</e>
            <e type="operator" args="2">+</e>
            <e type="bracket">(</e>
            <e type="operand">x.1</e>
            <e type="operand">α</e>
            <e type="operator" args="2">-</e>
            <e type="operand">δ</e>
            <e type="operator" args="2">+</e>
            <e type="function" args="3">range</e>
            <e type="operator" args="2">:</e>
            <e type="operand">X</e>
            <e type="function" args="1">φ#</e>
            <e type="function" args="1">vectorize</e>
            <e type="function" args="2">augment</e>
            <e type="operand">M</e>
            <e type="operand">2</e>
            <e type="operand">1</e>
            <e type="function" args="4">sys</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region id="3" left="54" top="234" width="215" height="30" color="#000000" bgColor="#ffffff" fontSize="10">
        <math>
          <description active="true" position="Top" lang="spa">
            <p>Utility shorthand.</p>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">U.\002B\½</e>
            <e type="operand">x</e>
            <e type="operand">0.5</e>
            <e type="operand">x</e>
            <e type="function" args="1">UnitsOf</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region id="4" left="297" top="234" width="213" height="30" color="#000000" bgColor="#ffffff" fontSize="10">
        <math>
          <description active="true" position="Top" lang="spa">
            <p>Utility shorthand.</p>
          </description>
          <input>
            <e type="operand">x</e>
            <e type="function" args="1">U.\002D\½</e>
            <e type="operand">x</e>
            <e type="operand">0.5</e>
            <e type="operand">x</e>
            <e type="function" args="1">UnitsOf</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">-</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region id="5" top="288" color="#000000" bgColor="#ffffff">
        <area terminator="true" />
      </region>
    </region>
    <region id="6" left="18" top="315" width="112" height="28" color="#008040" bgColor="#ffffff" fontSize="12">
      <text lang="spa">
        <p bold="true">Truncation</p>
      </text>
    </region>
    <region id="7" left="18" top="342" width="743" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>In SMath we need to start with the trunc function, expanding it for taking complexes, and it's 'dual', the fractionary part</p>
      </text>
    </region>
    <region id="8" left="54" top="396" width="319" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Trunc(x) truncate x to the next nearest integer towards  0.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">x</e>
          <e type="function" args="1">Re</e>
          <e type="function" args="1">trunc</e>
          <e type="operand">i</e>
          <e type="operand">x</e>
          <e type="function" args="1">Im</e>
          <e type="function" args="1">trunc</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="9" left="54" top="459" width="178" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Frac(x) returns the fractional part of x.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Frac</e>
          <e type="operand">x</e>
          <e type="operand">x</e>
          <e type="function" args="1">Trunc</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="10" left="54" top="513" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.17505273408497" scale_z="2.50282874482835" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="11" left="297" top="513" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">Frac</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="12" left="18" top="711" width="736" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>For the floor and ceil functions SMath have the Custom Functions plugin by Davide Carpi. Those functions expands over matrices and complexes but can't be used for integrals. We redefine them for pedagogical purposes, but notice that our implementation fails for small values.</p>
      </text>
    </region>
    <region id="13" left="90" top="792" width="102" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">Floor</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
        </result>
      </math>
    </region>
    <region id="14" left="225" top="792" width="138" height="37" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="bracket">(</e>
          <e type="operator" args="1">-</e>
          <e type="function" args="1">Floor</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
        </result>
      </math>
    </region>
    <region id="15" left="378" top="792" width="213" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Correct answers given by Custom Functions plugin.</p>
      </text>
    </region>
    <region id="16" left="54" top="846" width="277" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Floor(x) is the greatest integer less than or equal to x.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">x</e>
          <e type="function" args="1">Frac</e>
          <e type="operand">x</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">Frac</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="17" left="378" top="846" width="275" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Ceil(x) is the smallest integer greater than or equal to x.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">x</e>
          <e type="function" args="1">Frac</e>
          <e type="operand">x</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">Frac</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="18" left="54" top="927" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="19" left="297" top="927" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="20" left="540" top="936" width="156" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">Floor</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region id="21" left="540" top="972" width="192" height="37" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="bracket">(</e>
          <e type="operator" args="1">-</e>
          <e type="function" args="1">Floor</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
          <e type="operand">10</e>
          <e type="operand">20</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="1">-</e>
        </result>
      </math>
    </region>
    <region id="22" left="540" top="1017" width="119" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Wrong answers</p>
      </text>
    </region>
    <region id="23" left="585" top="1080" width="93" height="159" color="#000000" bgColor="#ffffff">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAIYAAADsCAYAAACxFt6tAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABHYSURBVHhe7Z3nc5TVF8d/w8Cf4BvHV/pCX6ujDoo6IuiMyOioNAsCUlVEUOldmvQuClKk95ZCKoSEhJAQAiShhUASQkiBhJBOcn77PT4bNuGkkYUNyfczc4fsfcouz/3cc869mYX/CSEGFIOYUAxiQjGICcUgJhSDmFAMYkIxiAnFICYUg5i0SIzyyvtyKD5ZQs9dcXpIW6FFYhSXV8gS/+OyLizW6XkybI1M0EYeH0+lGHi/J/2e7Q2vinEpK1dm7gmRA3FJMmN3iIzd4i9TdgZJXGqGHs8rKnYdD5V/I07XHJ+044gcTUqVaj1D5GBcst4T93bjFgH3n+w6H9eh4Wf0ZeQViN/pC1LicQ1pGV4XA4O12O+4ZOYXyt3SMlkffkrm7g+XguLSGjHmHzwm6Xl39PiumLMq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07qyBdu3aVfv36aeGJorXu9ahnNm3aJP3795eePXuqxNgQay/4TAzsG6D4i4iIMBvCeGOUl5drzdGU32EgAqB+wXuiIY3hPSCXJRX6kNawj4Hz8bsWvF97wefFZ2sHtQZae4NiEBOKQUwoBjGhGMSEYhATikFMKAYxoRjEhGIQE4pBTCgGMaEYxIRiEAOR/wOszS7P3DVFGAAAAABJRU5ErkJggg==</raw>
      </picture>
    </region>
    <region id="24" left="54" top="1125" width="102" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Notice that</p>
      </text>
    </region>
    <region id="25" left="423" top="1125" width="144" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>and Mathematica:</p>
      </text>
    </region>
    <region id="26" left="99" top="1161" width="176" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">2.7</e>
          <e type="operand">3.5</e>
          <e type="operand">i</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">Floor</e>
        </input>
        <result action="numeric">
          <e type="operand">2</e>
          <e type="operand">3</e>
          <e type="operand">i</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
        </result>
      </math>
    </region>
    <region id="27" left="54" top="1197" width="37" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>but</p>
      </text>
    </region>
    <region id="28" left="99" top="1197" width="278" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">2.7</e>
          <e type="operand">3.5</e>
          <e type="operand">i</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">floor</e>
          <e type="function" args="1">maple</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="operand">i</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
        </input>
      </math>
    </region>
    <region id="29" left="18" top="1242" width="292" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Other possible definitions include</p>
      </text>
    </region>
    <region id="30" left="54" top="1278" width="311" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <description active="true" position="Top" lang="spa">
          <p>Floor</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">1</e>
          <e type="operand">x</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="function" args="1">Trunc</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">Trunc</e>
          <e type="operator" args="2">+</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="31" left="396" top="1278" width="88" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <description active="true" position="Top" lang="spa">
          <p>Ceil</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operator" args="1">-</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="32" left="18" top="1341" width="92" height="28" color="#008040" bgColor="#ffffff" fontSize="12">
      <text lang="spa">
        <p bold="true">Rounding</p>
      </text>
    </region>
    <region id="33" left="18" top="1377" width="736" height="104" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>We can define different functions to calculate the nearest integer to a number according to which is the treatment of the numbers in the set         M = {x : Floor(F(x)) = 1/2} = {x : x + 1/2 ∈ Z}since these numbers are equidistant from the nearest lower and upper integers.</p>
      </text>
    </region>
    <region id="34" left="18" top="1494" width="414" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>We introduce the RoundUp and RoundDn functions as</p>
      </text>
    </region>
    <region id="35" left="54" top="1530" width="134" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundUp function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.\002B\\221E\</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="36" left="297" top="1530" width="134" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundDn function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.\002D\\221E\</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002D\½</e>
          <e type="function" args="1">Ceil</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="37" left="54" top="1584" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.\002B\\221E\</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="38" left="297" top="1584" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.\002D\\221E\</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="39" left="540" top="1584" width="208" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Notice that we use d=0.5for access to the pointsin the set M.</p>
      </text>
    </region>
    <region id="40" left="18" top="1782" width="431" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>And RoundZero and RoundInf (avoiding the use of if)</p>
      </text>
    </region>
    <region id="41" left="54" top="1809" width="307" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundZero function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.0</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002D\½</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="42" left="378" top="1809" width="307" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundInf function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.∞</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002D\½</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="43" left="54" top="1872" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.0</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="44" left="297" top="1872" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.∞</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="45" left="18" top="2070" width="512" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>The typical rounding function R(x) is actually equals to R.∞:</p>
      </text>
    </region>
    <region id="46" left="54" top="2106" width="395" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Round function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002D\½</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="47" left="18" top="2169" width="732" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>To avoid bias in the treatment of numbers, the rounding rule is usually used in practiceknown as "banking" or "Gaussian", R2, according to which values of numbers are always rounded to even numbers. In a symmetric way we can define a rule R1 that rounds to odd numbers, and again, avoiding the use of if statements.</p>
      </text>
    </region>
    <region id="48" left="18" top="2259" width="315" height="57" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundEven Function</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.2</e>
          <e type="operand">m</e>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">:</e>
          <e type="operand">2</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">*</e>
          <e type="operand">m</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">m</e>
          <e type="operator" args="1">¬</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="49" left="342" top="2259" width="425" height="59" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>RoundOdd function.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">R.1</e>
          <e type="operand">m</e>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">:</e>
          <e type="operand">2</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002D\½</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">m</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="function" args="1">U.\002B\½</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">m</e>
          <e type="operator" args="1">¬</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="50" left="54" top="2349" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.1</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="51" left="297" top="2349" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">R.2</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="52" left="18" top="2547" width="161" height="28" color="#008040" bgColor="#ffffff" fontSize="12">
      <text lang="spa">
        <p bold="true">Digits Rounding</p>
      </text>
    </region>
    <region id="53" left="783" top="2556" width="216" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.\002B\\221E\</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.\002B\\221E\</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="54" left="1026" top="2556" width="202" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.0</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.0</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="55" left="1251" top="2556" width="202" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.1</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.1</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="56" left="18" top="2574" width="617" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>To round with n decimal digits we can define them according with the rule:</p>
      </text>
    </region>
    <region id="57" left="783" top="2592" width="216" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.\002D\\221E\</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.\002D\\221E\</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="58" left="1026" top="2592" width="202" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.∞</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.∞</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="59" left="1251" top="2592" width="202" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R.2</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.2</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="60" left="54" top="2601" width="186" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f.n</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">f</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
        </input>
      </math>
    </region>
    <region id="61" left="18" top="2646" width="655" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>We can apply this rule to all the above rounding functions: R.+∞, R.0 ... etc. For the usual round function it is</p>
      </text>
    </region>
    <region id="62" left="54" top="2700" width="204" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">R</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="63" left="18" top="2754" width="291" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>SMath have its own round function:</p>
      </text>
    </region>
    <region id="64" left="54" top="2790" width="238" height="39" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">round</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R.2</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
        </input>
      </math>
    </region>
    <region id="65" left="414" top="2790" width="252" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="function" args="3">round</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
        </input>
      </math>
    </region>
    <region id="66" left="342" top="2799" width="41" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>and </p>
      </text>
    </region>
    <region id="67" left="54" top="2835" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">r</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="function" args="2">round</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x</e>
          <e type="function" args="1">r</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
        </input>
      </plot>
    </region>
    <region id="68" left="306" top="2835" width="216" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.15330220674412" scale_y="2.26427417087124" scale_z="2.60549567016039" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="1" transpose_z="0">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">r</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="function" args="3">round</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x</e>
          <e type="function" args="1">r</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
        </input>
      </plot>
    </region>
    <region id="69" left="18" top="3060" width="406" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Mathcad extend round functions for two arguments</p>
      </text>
    </region>
    <region id="70" left="54" top="3096" width="159" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Ceil(x, y) returns the smallest multiple of y greater than or equal to x. </p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">Floor</e>
          <e type="operand">y</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="71" left="423" top="3096" width="151" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Floor(x, y) returns the greatest multiple of y less than or equal to x.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">Ceil</e>
          <e type="operand">y</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Ceil</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="72" left="54" top="3186" width="174" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Round(x, y) Rounds x to the closest multiple of y.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">Round</e>
          <e type="operand">y</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">R</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="73" left="423" top="3186" width="206" height="43" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="true" position="Top" lang="spa">
          <p>Trunc(x, y) Returns the value of trunc(x/y)*y.</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="function" args="2">Trunc</e>
          <e type="operand">y</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Trunc</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="74" left="18" top="3285" width="152" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Also have the function mantissa</p>
      </text>
    </region>
    <region id="75" left="234" top="3285" width="163" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="false" position="Top" lang="spa">
          <p />
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Mantissa</e>
          <e type="operand">x</e>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="76" left="459" top="3285" width="216" height="105" color="#000000" bgColor="#ffffff" fontSize="10">
      <plot type="2d" render="points" scale_x="2.29828167569178" scale_y="2.26427417087124" scale_z="2.78092082758705" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-2" transpose_y="-18" transpose_z="0">
        <input>
          <e type="operand">ξ</e>
          <e type="function" args="1">Mantissa</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operand">3</e>
          <e type="operand">0.5</e>
          <e type="function" args="4">RPlot</e>
        </input>
      </plot>
    </region>
    <region id="77" left="18" top="3429" width="745" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>Because it's extensive use in the practice, we show the MS Excel round functions and it's implementation in SMath</p>
      </text>
    </region>
    <region id="78" left="612" top="3465" width="102" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>In Spanish:</p>
      </text>
    </region>
    <region id="79" left="54" top="3492" width="560" height="317" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">F</e>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="3">R.Excel</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">R</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">F</e>
          <e type="operand" style="string">ROUND</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operand">F</e>
          <e type="operand" style="string">ROUNDUP</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">F</e>
          <e type="operand" style="string">ROUNDDOWN</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">2</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.5</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">F</e>
          <e type="operand" style="string">EVEN</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">2</e>
          <e type="operand">x</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Ceil</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operand">F</e>
          <e type="operand" style="string">ODD</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="function" args="1">Floor</e>
          <e type="operand">F</e>
          <e type="operand" style="string">INT</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="2">^</e>
          <e type="operand">x</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">Trunc</e>
          <e type="operand">10</e>
          <e type="operand">n</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">F</e>
          <e type="operand" style="string">TRUNC</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">Floor</e>
          <e type="operand">F</e>
          <e type="operand" style="string">FLOOR</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">Ceil</e>
          <e type="operand">F</e>
          <e type="operand" style="string">CEILING</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">x</e>
          <e type="operand">n</e>
          <e type="function" args="2">Round</e>
          <e type="operand">F</e>
          <e type="operand" style="string">MROUND</e>
          <e type="operator" args="2">≡</e>
          <e type="operand" style="string">#N/A</e>
          <e type="function" args="21">cases</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="80" left="612" top="3501" width="84" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">REDONDEAR</e>
        </input>
      </math>
    </region>
    <region id="81" left="612" top="3537" width="119" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>REDONDEAR.MAS</p>
      </text>
    </region>
    <region id="82" left="612" top="3591" width="136" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>REDONDEAR.MENOS</p>
      </text>
    </region>
    <region id="83" left="612" top="3609" width="111" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>REDONDEA.PAR</p>
      </text>
    </region>
    <region id="84" left="612" top="3645" width="127" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>REDONDEA.IMPAR</p>
      </text>
    </region>
    <region id="85" left="612" top="3672" width="61" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>ENTERO</p>
      </text>
    </region>
    <region id="86" left="612" top="3708" width="70" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>TRUNCAR</p>
      </text>
    </region>
    <region id="87" left="612" top="3726" width="156" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>MULTIPLO.INFERIOR </p>
      </text>
    </region>
    <region id="88" left="612" top="3744" width="152" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>MULTIPLO.SUPERIOR</p>
      </text>
    </region>
    <region id="89" left="612" top="3762" width="103" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>REDOND.MULT</p>
      </text>
    </region>
    <region id="90" left="18" top="3825" width="290" height="28" color="#008040" bgColor="#ffffff" fontSize="12">
      <text lang="spa">
        <p bold="true">Significant Figures Rounding</p>
      </text>
    </region>
    <region id="91" left="18" top="3852" width="659" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>To round with m significant figures we can define them according with the rule:</p>
      </text>
    </region>
    <region id="92" left="54" top="3888" width="251" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">fs.m</e>
          <e type="operand">f</e>
          <e type="operand">m</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operand">x</e>
          <e type="function" args="1">abs</e>
          <e type="function" args="1">log10</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="2">el</e>
          <e type="operand">\0028\x\0029\</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">≡</e>
        </input>
      </math>
    </region>
    <region id="93" left="18" top="3933" width="103" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>For example</p>
      </text>
    </region>
    <region id="94" left="54" top="3960" width="269" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">x</e>
          <e type="operand">m</e>
          <e type="function" args="2">RS</e>
          <e type="operand">x</e>
          <e type="operand">m</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operand">x</e>
          <e type="function" args="1">abs</e>
          <e type="function" args="1">log10</e>
          <e type="function" args="1">Floor</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="2">R</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="95" left="387" top="3960" width="155" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">9254</e>
          <e type="operand">2</e>
          <e type="function" args="2">RS</e>
        </input>
        <result action="numeric">
          <e type="operand">9300</e>
        </result>
      </math>
    </region>
    <region id="96" left="621" top="3960" width="45" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="spa">
        <p>etc.</p>
      </text>
    </region>
    <region id="97" left="18" top="4005" width="60" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
    <region id="98" top="4032" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
</regions>