﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7610.506"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>0dcafc4c-b52b-4ab2-b517-8e7e4977334d</id>
      <revision>43</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <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="0.99.7610.506" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7610.506" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7610.506" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7610.506" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="0" top="9" width="723" height="34" color="#000000" fontSize="16">
      <text lang="ger" width="723">
        <p bold="true" fontName="Arial">Example for errornous behaviour in elementwise calculation</p>
      </text>
    </region>
    <region left="162" top="54" width="257" height="29" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">3</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">0.99.7610</e>
        </result>
      </math>
    </region>
    <region left="297" top="108" width="96" height="74" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a.1</e>
          <e type="operand">0.2</e>
          <e type="operand">3</e>
          <e type="operand">0.4</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="441" top="108" width="77" height="74" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">b.1</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">3</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="9" top="126" width="139" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Data for example:</p>
      </text>
    </region>
    <region left="189" top="126" width="53" height="27" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">P</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="225" top="198" width="221" height="113" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="2">f.1</e>
          <e type="operand">a</e>
          <e type="operand">1</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">Res</e>
          <e type="operand">a</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Res</e>
          <e type="operand">a</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="operand">Res</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 left="9" top="207" width="101" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Function f.1:</p>
      </text>
    </region>
    <region left="468" top="306" width="163" height="74" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a.1</e>
          <e type="operand">b.1</e>
          <e type="function" args="2">f.1</e>
          <e type="function" args="1">vectorize</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2</e>
          <e type="operand">2</e>
          <e type="operand">1.4</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="324" width="173" height="48" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a.1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">b.1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">f.1</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2</e>
        </result>
      </math>
    </region>
    <region left="9" top="333" width="81" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Using f.1:</p>
      </text>
    </region>
    <region left="297" top="432" width="212" height="36" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="2">f.2</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="2">f.1</e>
          <e type="bracket">(</e>
          <e type="operand">P</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="9" top="441" width="172" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Function f.2 (uses f.1):</p>
      </text>
    </region>
    <region left="297" top="486" width="173" height="48" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a.1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">b.1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">f.2</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2</e>
        </result>
      </math>
    </region>
    <region left="9" top="495" width="239" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Calculation for scalars (correct):</p>
      </text>
    </region>
    <region left="297" top="540" width="163" height="74" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a.1</e>
          <e type="operand">b.1</e>
          <e type="function" args="2">f.2</e>
          <e type="function" args="1">vectorize</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2</e>
          <e type="operand">2</e>
          <e type="operand">1.4</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
    <region left="9" top="567" width="252" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Elementwise calculation (correct):</p>
      </text>
    </region>
    <region left="333" top="648" width="180" height="42" color="#000000" fontSize="12">
      <math error="6">
        <input>
          <e type="operand">Result</e>
          <e type="operand">a.1</e>
          <e type="operand">b.1</e>
          <e type="function" args="2">f.2</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="657" width="285" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">Error if result is assigned to a variable:</p>
      </text>
    </region>
    <region left="549" top="675" width="99" height="27" color="#000000" fontSize="12">
      <math error="2" errorLocation="0">
        <input>
          <e type="operand">Result</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="297" top="765" width="190" height="36" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="2">f.3</e>
          <e type="operand">a</e>
          <e type="operand">b</e>
          <e type="function" args="2">f.1</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="774" width="210" height="27" color="#000000" fontSize="12">
      <text lang="ger">
        <p fontName="Arial">No problem if P is removed:</p>
      </text>
    </region>
    <region left="297" top="828" width="180" height="42" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">Result</e>
          <e type="operand">a.1</e>
          <e type="operand">b.1</e>
          <e type="function" args="2">f.3</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="522" top="837" width="134" height="74" color="#000000" fontSize="12">
      <math>
        <input>
          <e type="operand">Result</e>
        </input>
        <result action="numeric">
          <e type="operand">1.2</e>
          <e type="operand">2</e>
          <e type="operand">1.4</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>