﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.98.6484.11448"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings>
    <identity>
      <id>8756e0b0-4786-49cc-b282-8d7a293f7675</id>
      <revision>65</revision>
    </identity>
    <metadata lang="eng">
      <title>Functions for line intersections</title>
      <author>Marco Bernacca</author>
    </metadata>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="30" top="39" bottom="59" />
      <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.98.6484.11448" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.98.6484.11448" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Picture Region" version="1.10.6484.11450" guid="06b5df04-393e-4be7-9107-305196fcb861" />
      <assembly name="Special Functions" version="1.11.6484.11450" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Text Region" version="1.10.6484.11451" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Plot Region" version="1.9.6484.11451" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <region id="0" left="0" top="0" width="741" height="152" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>These functions have been written to implement in Smath some features that are natively provided by either Scilab or Matlab in order to make available in Smath a function originally written in Matlab to find intersections between lines.The function in subject is  P = InterX(L1, L2), written by NS. See below link:https://de.mathworks.com/matlabcentral/fileexchange/22441-curve-intersectionsI made a translation for Scilab and (tried to) translate for Smath. To simplify the task,I have written some helper functions that might be useful for other tasks, so I provide them here to the community.</p>
    </text>
  </region>
  <region id="1" left="9" top="162" width="733" height="120" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function mdiff(V)Input: a vector (either a row or a column)Output: a vector of the same nature of input (a row or a column) containing the                 differences V(i+1)-V(i). Number of output elements are lenght(V)-1.The first line could appear a bit weird, but it is the quickest way I found to mantainthe original nature of the input vector. Another possible implementation is given below.</p>
    </text>
  </region>
  <region id="2" left="18" top="288" width="495" height="95" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">V</e>
        <e type="function" args="1">mdiff</e>
        <e type="operand">R</e>
        <e type="operand">V</e>
        <e type="function" args="1">rows</e>
        <e type="operand">V</e>
        <e type="function" args="1">rows</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">-</e>
        <e type="operand">V</e>
        <e type="function" args="1">cols</e>
        <e type="operand">V</e>
        <e type="function" args="1">cols</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="2">matrix</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ii</e>
        <e type="operand">1</e>
        <e type="operand">R</e>
        <e type="function" args="1">length</e>
        <e type="function" args="2">range</e>
        <e type="operand">R</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">ii</e>
        <e type="operand">1</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">R</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="531" top="360" width="86" height="24" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Examples:</p>
    </text>
  </region>
  <region id="4" left="594" top="369" width="61" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z2</e>
        <e type="operand">4</e>
        <e type="operand">2</e>
        <e type="operand">7</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="operand">5</e>
        <e type="operand">1</e>
        <e type="function" args="7">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="5" left="9" top="378" width="268" height="163" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">V</e>
        <e type="function" args="1">mdiff2</e>
        <e type="operand">lR</e>
        <e type="operand">V</e>
        <e type="function" args="1">length</e>
        <e type="operand">1</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">V</e>
        <e type="function" args="1">rows</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">lR</e>
        <e type="function" args="2">range</e>
        <e type="operand">R</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">lR</e>
        <e type="function" args="2">range</e>
        <e type="operand">R</e>
        <e type="operand">1</e>
        <e type="operand">i</e>
        <e type="function" args="3">el</e>
        <e type="operand">V</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="function" args="3">if</e>
        <e type="operand">R</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="6" left="432" top="387" width="141" height="27" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z1</e>
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="operand">5</e>
        <e type="operand">8</e>
        <e type="operand">9</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="operand">6</e>
        <e type="function" args="8">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="7" left="387" top="414" width="197" height="27" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z1</e>
        <e type="function" args="1">mdiff</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="operand">5</e>
        <e type="operator" args="1">-</e>
        <e type="operand">1</e>
        <e type="operand">5</e>
        <e type="function" args="7">mat</e>
      </result>
    </math>
  </region>
  <region id="8" left="576" top="459" width="133" height="81" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z2</e>
        <e type="function" args="1">mdiff</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operator" args="1">-</e>
        <e type="operand">5</e>
        <e type="operand">4</e>
        <e type="operator" args="1">-</e>
        <e type="operand">2</e>
        <e type="operator" args="1">-</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="function" args="6">mat</e>
      </result>
    </math>
  </region>
  <region id="9" left="0" top="558" width="811" height="104" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function map(x; y; fun(2))Input: x, y: vectors or matrices with compatible sizes. fun: a function of 2 argumensOutput: vector or matrix whose elements are fun(el(x);el(y))Apply a given function to corresponding elements of compatible arrays.For info on the Matlab concept of "arrays of compatible sizes" please refer to:https://it.mathworks.com/help/matlab/matlab_prog/compatible-array-sizes-for-basic-operations.html</p>
    </text>
  </region>
  <region id="10" left="9" top="666" width="133" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="function" args="2">plus</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="11" left="153" top="666" width="135" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="function" args="2">times</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="12" left="297" top="666" width="141" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="function" args="2">minus</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="13" left="450" top="666" width="132" height="41" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="function" args="2">divide</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="14" left="9" top="693" width="475" height="609" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="operand">y</e>
        <e type="operand">2</e>
        <e type="function" args="1">fun</e>
        <e type="function" args="3">map</e>
        <e type="operand">xh</e>
        <e type="operand">x</e>
        <e type="function" args="1">cols</e>
        <e type="operator" args="2">:</e>
        <e type="operand">xv</e>
        <e type="operand">x</e>
        <e type="function" args="1">rows</e>
        <e type="operator" args="2">:</e>
        <e type="operand">yh</e>
        <e type="operand">y</e>
        <e type="function" args="1">cols</e>
        <e type="operator" args="2">:</e>
        <e type="operand">yv</e>
        <e type="operand">y</e>
        <e type="function" args="1">rows</e>
        <e type="operator" args="2">:</e>
        <e type="operand">okx</e>
        <e type="operand">xh</e>
        <e type="operand">yh</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operand">xh</e>
        <e type="operand">1</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operand">yh</e>
        <e type="operand">1</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">|</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">|</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
        <e type="operand">oky</e>
        <e type="operand">xv</e>
        <e type="operand">yv</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operand">xv</e>
        <e type="operand">1</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operand">yv</e>
        <e type="operand">1</e>
        <e type="operator" args="2">≡</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">|</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">|</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
        <e type="operand">okx</e>
        <e type="operand">oky</e>
        <e type="operator" args="2">&amp;</e>
        <e type="operand">xx</e>
        <e type="operand">x</e>
        <e type="operator" args="2">:</e>
        <e type="operand">yy</e>
        <e type="operand">y</e>
        <e type="operator" args="2">:</e>
        <e type="operand">xh</e>
        <e type="operand">yh</e>
        <e type="operator" args="2">&lt;</e>
        <e type="operand">ii</e>
        <e type="operand">2</e>
        <e type="operand">yh</e>
        <e type="function" args="2">range</e>
        <e type="operand">xx</e>
        <e type="operand">xx</e>
        <e type="operand">x</e>
        <e type="function" args="2">augment</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">xh</e>
        <e type="operand">yh</e>
        <e type="operator" args="2">&gt;</e>
        <e type="operand">ii</e>
        <e type="operand">2</e>
        <e type="operand">xh</e>
        <e type="function" args="2">range</e>
        <e type="operand">yy</e>
        <e type="operand">yy</e>
        <e type="operand">y</e>
        <e type="function" args="2">augment</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">1</e>
        <e type="function" args="3">if</e>
        <e type="function" args="3">if</e>
        <e type="operand">xv</e>
        <e type="operand">yv</e>
        <e type="operator" args="2">&lt;</e>
        <e type="operand">ii</e>
        <e type="operand">2</e>
        <e type="operand">yv</e>
        <e type="function" args="2">range</e>
        <e type="operand">xx</e>
        <e type="operand">xx</e>
        <e type="operand">x</e>
        <e type="function" args="2">stack</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">xv</e>
        <e type="operand">yv</e>
        <e type="operator" args="2">&gt;</e>
        <e type="operand">ii</e>
        <e type="operand">2</e>
        <e type="operand">xv</e>
        <e type="function" args="2">range</e>
        <e type="operand">yy</e>
        <e type="operand">yy</e>
        <e type="operand">y</e>
        <e type="function" args="2">stack</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">1</e>
        <e type="function" args="3">if</e>
        <e type="function" args="3">if</e>
        <e type="operand">ii</e>
        <e type="operand">1</e>
        <e type="operand">xv</e>
        <e type="operand">yv</e>
        <e type="function" args="2">Max</e>
        <e type="function" args="2">range</e>
        <e type="operand">jj</e>
        <e type="operand">1</e>
        <e type="operand">xh</e>
        <e type="operand">yh</e>
        <e type="function" args="2">Max</e>
        <e type="function" args="2">range</e>
        <e type="operand">zz</e>
        <e type="operand">ii</e>
        <e type="operand">jj</e>
        <e type="function" args="3">el</e>
        <e type="operand">xx</e>
        <e type="operand">ii</e>
        <e type="operand">jj</e>
        <e type="function" args="3">el</e>
        <e type="operand">yy</e>
        <e type="operand">ii</e>
        <e type="operand">jj</e>
        <e type="function" args="3">el</e>
        <e type="function" args="2">fun</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="function" args="3">for</e>
        <e type="operand">zz</e>
        <e type="operand">6</e>
        <e type="operand">1</e>
        <e type="function" args="8">line</e>
        <e type="operand" style="string">Incompatible sizes</e>
        <e type="function" args="1">error</e>
        <e type="function" args="3">if</e>
        <e type="operand">7</e>
        <e type="operand">1</e>
        <e type="function" args="9">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="15" left="396" top="1278" width="361" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z1</e>
        <e type="operand">z2</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
      </input>
      <result action="numeric">
        <e type="operand">4</e>
        <e type="operand">12</e>
        <e type="operand">20</e>
        <e type="operand">32</e>
        <e type="operand">36</e>
        <e type="operand">16</e>
        <e type="operand">2</e>
        <e type="operand">6</e>
        <e type="operand">10</e>
        <e type="operand">16</e>
        <e type="operand">18</e>
        <e type="operand">8</e>
        <e type="operand">7</e>
        <e type="operand">21</e>
        <e type="operand">35</e>
        <e type="operand">56</e>
        <e type="operand">63</e>
        <e type="operand">28</e>
        <e type="operand">3</e>
        <e type="operand">9</e>
        <e type="operand">15</e>
        <e type="operand">24</e>
        <e type="operand">27</e>
        <e type="operand">12</e>
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="operand">5</e>
        <e type="operand">8</e>
        <e type="operand">9</e>
        <e type="operand">4</e>
        <e type="operand">5</e>
        <e type="operand">6</e>
        <e type="function" args="32">mat</e>
      </result>
    </math>
  </region>
  <region id="16" left="504" top="1278" width="86" height="24" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Examples:</p>
    </text>
  </region>
  <region id="17" left="0" top="1386" width="746" height="72" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function index(x; cond)Input: x: a vector (row or column). cond: expression evaluating to an array of T/F values.Output: a vector of same nature of input array whose components are those corresponding                to a TRUE value for the given condition. </p>
    </text>
  </region>
  <region id="18" left="9" top="1467" width="375" height="250" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">V</e>
        <e type="operand">cond</e>
        <e type="function" args="2">index</e>
        <e type="operand">R</e>
        <e type="operand">V</e>
        <e type="function" args="1">rows</e>
        <e type="operand">V</e>
        <e type="function" args="1">cols</e>
        <e type="function" args="2">matrix</e>
        <e type="operator" args="2">:</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operator" args="2">:</e>
        <e type="operand">i</e>
        <e type="operand">1</e>
        <e type="operand">V</e>
        <e type="function" args="1">length</e>
        <e type="function" args="2">range</e>
        <e type="operand">cond</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operand">R</e>
        <e type="operand">j</e>
        <e type="function" args="2">el</e>
        <e type="operand">V</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="operand">j</e>
        <e type="operand">j</e>
        <e type="operand">1</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="operand">continue</e>
        <e type="function" args="3">if</e>
        <e type="function" args="3">for</e>
        <e type="operand">R</e>
        <e type="function" args="1">rows</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
        <e type="bracket">(</e>
        <e type="operand">R</e>
        <e type="operand">1</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operator" args="2">-</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" args="5">submatrix</e>
        <e type="operand">R</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="5">submatrix</e>
        <e type="function" args="3">if</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="function" args="6">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="19" left="468" top="1629" width="86" height="24" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Examples:</p>
    </text>
  </region>
  <region id="20" left="468" top="1656" width="209" height="27" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z1</e>
        <e type="operand">z1</e>
        <e type="operand">4</e>
        <e type="operator" args="2">&gt;</e>
        <e type="function" args="2">index</e>
      </input>
      <result action="numeric">
        <e type="operand">5</e>
        <e type="operand">8</e>
        <e type="operand">9</e>
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="21" left="468" top="1683" width="230" height="81" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">z2</e>
        <e type="operand">z1</e>
        <e type="function" args="1">mdiff</e>
        <e type="operand">0</e>
        <e type="operator" args="2">&gt;</e>
        <e type="function" args="2">index</e>
      </input>
      <result action="numeric">
        <e type="operand">4</e>
        <e type="operand">2</e>
        <e type="operand">7</e>
        <e type="operand">3</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="function" args="6">mat</e>
      </result>
    </math>
  </region>
  <region id="22" left="9" top="1764" width="331" height="56" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function plotG(x; y; char; size; color)Thanks to Omorr!! :-)</p>
    </text>
  </region>
  <region id="23" left="9" top="1818" width="729" height="121" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="operand">y</e>
        <e type="operand">char</e>
        <e type="operand">size</e>
        <e type="operand">color</e>
        <e type="function" args="5">plotG</e>
        <e type="operand">n</e>
        <e type="operand">x</e>
        <e type="function" args="1">length</e>
        <e type="operator" args="2">:</e>
        <e type="operand">plot</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operand">y</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operand">char</e>
        <e type="operand">size</e>
        <e type="operand">color</e>
        <e type="function" args="5">augment</e>
        <e type="operator" args="2">:</e>
        <e type="operand">i</e>
        <e type="operand">2</e>
        <e type="operand">n</e>
        <e type="function" args="2">range</e>
        <e type="operand">plot</e>
        <e type="operand">plot</e>
        <e type="operand">x</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operand">y</e>
        <e type="operand">i</e>
        <e type="function" args="2">el</e>
        <e type="operand">char</e>
        <e type="operand">size</e>
        <e type="operand">color</e>
        <e type="function" args="5">augment</e>
        <e type="function" args="2">stack</e>
        <e type="operator" args="2">:</e>
        <e type="function" args="3">for</e>
        <e type="operand">plot</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="function" args="6">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="24" left="0" top="1962" width="569" height="88" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function D(x; y)Helper function for InterX. See below.Sorry for the long line, but I do like functional programming... :-)At the end this is simpler than an average lisp expression!!</p>
    </text>
  </region>
  <region id="25" left="0" top="2043" width="1138" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="operand">y</e>
        <e type="function" args="2">D</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="function" args="1">rows</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="function" args="1">cols</e>
        <e type="operand">1</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="5">submatrix</e>
        <e type="operand">y</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">minus</e>
        <e type="function" args="3">map</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="function" args="1">rows</e>
        <e type="operand">2</e>
        <e type="operand">x</e>
        <e type="function" args="1">cols</e>
        <e type="function" args="5">submatrix</e>
        <e type="operand">y</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">minus</e>
        <e type="function" args="3">map</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="26" left="0" top="2160" width="753" height="2472" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>function P = InterX(L1,L2)//INTERX Intersection of curves//   P = INTERX(L1,L2) returns the intersection points of two curves L1 //   and L2. The curves L1,L2 can be either closed or open and are described//   by two-row-matrices, where each row contains its x- and y- coordinates.//   The intersection of groups of curves (e.g. contour lines, multiply //   connected regions etc) can also be computed by separating them with a//   column of NaNs as for example////         L  = [x11 x12 x13 ... NaN x21 x22 x23 ...;//               y11 y12 y13 ... NaN y21 y22 y23 ...]////   P has the same structure as L1 and L2, and its rows correspond to the//   x- and y- coordinates of the intersection points of L1 and L2. If no//   intersections are found, the returned P is empty.////   P = INTERX(L1) returns the self-intersection points of L1. To keep//   the code simple, the points at which the curve is tangent to itself are//   not included. P = INTERX(L1,L1) returns all the points of the curve //   together with any self-intersection points.//   //   Author : NS//   Version: 3.0, 21 Sept. 2010//   Modified for Scilab by Marco Bernacca 07 March 2017//   Two words about the algorithm: Most of the code is self-explanatory.//   The only trick lies in the calculation of C1 and C2. To be brief, this//   is essentially the two-dimensional analog of the condition that needs//   to be satisfied by a function F(x) that has a zero in the interval//   [a,b], namely//           F(a)*F(b) &lt;= 0//   C1 and C2 exactly do this for each segment of curves 1 and 2//   respectively. If this condition is satisfied simultaneously for two//   segments then we know that they will cross at some point. //   Each factor of the 'C' arrays is essentially a matrix containing //   the numerators of the signed distances between points of one curve//   and line segments of the other./*    //...Argument checks and assignment of L2    error(nargchk(1,2,nargin));    if nargin == 1,        L2 = L1;    hF = @lt;   //...Avoid the inclusion of common points    else        L2 = varargin{1}; hF = @le;    end    Note by MBernacca: this is not implemented in the Scilab version. L1 and L2 must    be both specified and sintax is P = InterX(L1, L2))*/    //...Preliminary stuff    x1  = L1(1,:)';  x2 = L2(1,:);    y1  = L1(2,:)';  y2 = L2(2,:);    dx1 = diff(x1); dy1 = diff(y1);    dx2 = diff(x2); dy2 = diff(y2);        //...Determine 'signed distances'       S1 = dx1.*y1(1:$-1) - dy1.*x1(1:$-1);    S2 = dx2.*y2(1:$-1) - dy2.*x2(1:$-1);   // Original Matlab statements//    C1 = feval(hF,D(bsxfun(@times,dx1,y2)-bsxfun(@times,dy1,x2),S1),0);//    C2 = feval(hF,D((bsxfun(@times,y1,dx2)-bsxfun(@times,x1,dy2))',S2'),0)';// Modified for Scilab    C1 = D(bsrfun(dx1,y2,times)-bsrfun(dy1,x2,times),S1) &lt;= 0;    C2 = (D((bsrfun(y1,dx2,times)-bsrfun(x1,dy2,times))',S2') &lt;= 0)';        //...Obtain the segments where an intersection is expected    [i,j] = find(C1 &amp; C2);     if isempty(i) then P = zeros(2,0);return; end;        //...Transpose and prepare for output    i=i'; dx2=dx2'; dy2=dy2'; S2 = S2';    L = dy2(j).*dx1(i) - dy1(i).*dx2(j);    i = i(L~=0); j=j(L~=0); L=L(L~=0);  //...Avoid divisions by 0        //...Solve system of eqs to get the common points    P = unique([dx2(j).*S1(i) - dx1(i).*S2(j), dy2(j).*S1(i) - dy1(i).*S2(j)]./[L L],'r')';endfunction              /*    function u = D(x,y)        u = bsxfun(@minus,x(:,1:end-1),y).*bsxfun(@minus,x(:,2:end),y);    end     Note by MBer: Matlab function u = bsxfun(fun, a, b) substituted by    function u = bsrfun(a, b, fun) written to support "compatible sizes"    feature not available in Scilab *///==========================================================// Below functions written by Marco Bernacca 07 March 2017//==========================================================function u = D(a, b)    u = bsrfun(a(:, 1:$-1), b, minus) .* bsrfun(a(:, 2:$), b, minus);endfunction//_____________________________________________________________________________// Function:     Apply a function to a set of elements// Developer:    Marco Bernacca// Origination:  2017-03-02// Edited:       2017-03-02//_____________________________________________________________________________function u = bsrfun(a, b, fun)    [chk, ra, rb, ms] = chkarg(a,b);    // Replicates Matlab's "Compatible sizes" feature    if chk then        a = repmat(a, ra);        b = repmat(b, rb);        u = fun(a, b);    else        disp ("bsrfun: Incompatible sizes of arguments.")        abort    endendfunction//==========================================================function [c,ra,rb,d] = chkarg(a,b)    // Helper function to support Matlab's "Compatible sizes" feature     aa = size(a); bb = size(b);    na = ndims(a); nb = ndims(b);    if na &gt; nb then        bb = [bb, ones(na-nb)];    elseif na &lt; nb then        aa = [aa, ones(nb-na)];    end    cc = min(aa,bb)(aa&lt;&gt;bb);    c = and(cc == [] || cc == 1);    d = max(aa,bb);    ra = ones(1, length(d));    rb = ones(1, length(d));    ra(aa==1) = d(aa==1);    rb(bb==1) = d(bb==1);endfunction//==========================================================function u = plus(a, b)    u = a + b;endfunction//==========================================================function u = minus(a, b)    u = a - b;endfunction//==========================================================function u = times(a, b)    u = a .* b;endfunction//==========================================================function u = divide(a, b)    u = a ./ b;endfunction//==========================================================// Scilab users: just copy/paste this entire text region to a Scilab console.//   Example:timer();   t = linspace(0,2*%pi);   r1 = sin(4*t)+2;  x1 = r1.*cos(t); y1 = r1.*sin(t);   r2 = sin(8*t)+2;  x2 = r2.*cos(t); y2 = r2.*sin(t);   P = InterX([x1;y1],[x2;y2]);   plot(x1,y1,x2,y2,P(1,:),P(2,:),'ro')timer()//End of File_____________________________________________________________________________</p>
    </text>
  </region>
  <region id="27" left="45" top="4653" width="184" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Scilab graphic output</p>
    </text>
  </region>
  <region id="28" left="9" top="4671" width="533" height="419" border="true" color="#000000" bgColor="#80ffff">
    <picture readOnly="false">
      <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAg0AAAGbCAYAA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WLFy+KW1H7+/vlV06Tc7XPS/KU917H5nKeY2sqViGMl+arsN+8efOPD/TJbca6sQhhvFzOc2ixjJUWamgIaaxCqV+x1Hs5B5/XxyBDwy+//FJ82ENuQcqnRH/99dfymXHJZMimqzbLHsutKrlFJecqC04W0tgmnacv+hzs4xDGS/M1XvJhJnuL8eLFi8XF0AppvCad51hiGSvNnpsv+vVDHKtQ6lcs9d739dHP7AAAgOgQGgAAgBNCAwAAcEJoAAAATggNAADACaEBAAA4ITQAAAAnhAYAAOCE0AAAAJwQGgAAgBNCAwAAcEJoAAAATggNAADACaEBAAA4ITQAAAAnhAYAAOCE0AAAAJwQGgAAgBNCAwAAcEJoAAAADoz5X60ujDwvzvzJAAAAAElFTkSuQmCC</raw>
    </picture>
  </region>
  <region id="29" left="27" top="5184" width="657" height="104" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Now let's try to do the same thing in Smath.Some plugins are required and in particular:- Matlab C++ Math LibraryAttention: to my knowledge,this plugin only works with 32 bit version of Smath.I am using 0.98 build 6484 dated 02 Oct 2017.</p>
    </text>
  </region>
  <region id="30" left="9" top="5373" width="616" height="56" border="true" color="#000000" bgColor="#ffff80" fontSize="10">
    <text lang="eng">
      <p>Function InterX(L1; L2)Input: L1; L2 : 2-rows matrices of coords (Row1 = x-coord; Row2 = y-coord)Output: 2-rows matricx of coords of intersecting points</p>
    </text>
  </region>
  <region id="31" left="0" top="5445" width="746" height="786" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">L1</e>
        <e type="operand">L2</e>
        <e type="function" args="2">InterX</e>
        <e type="operand">x1</e>
        <e type="operand">L1</e>
        <e type="operand">1</e>
        <e type="function" args="2">row</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">x2</e>
        <e type="operand">L2</e>
        <e type="operand">1</e>
        <e type="function" args="2">row</e>
        <e type="operator" args="2">:</e>
        <e type="operand">y1</e>
        <e type="operand">L1</e>
        <e type="operand">2</e>
        <e type="function" args="2">row</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">y2</e>
        <e type="operand">L2</e>
        <e type="operand">2</e>
        <e type="function" args="2">row</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dx1</e>
        <e type="operand">x1</e>
        <e type="function" args="1">mdiff</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dy1</e>
        <e type="operand">y1</e>
        <e type="function" args="1">mdiff</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dx2</e>
        <e type="operand">x2</e>
        <e type="function" args="1">mdiff</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dy2</e>
        <e type="operand">y2</e>
        <e type="function" args="1">mdiff</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ii</e>
        <e type="operand">1</e>
        <e type="operand">dx1</e>
        <e type="function" args="1">length</e>
        <e type="function" args="2">range</e>
        <e type="operand">S1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">dx1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">y1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">*</e>
        <e type="operand">dy1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">x1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">S2</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">dx2</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">y2</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">*</e>
        <e type="operand">dy2</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">x2</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">*</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="function" args="3">for</e>
        <e type="operand">S2</e>
        <e type="operand">S2</e>
        <e type="function" args="1">transpose</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
        <e type="operand">C1</e>
        <e type="operand">dx1</e>
        <e type="operand">y2</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operand">dy1</e>
        <e type="operand">x2</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">-</e>
        <e type="operand">S1</e>
        <e type="function" args="2">D</e>
        <e type="operand">0</e>
        <e type="function" args="2">mwle</e>
        <e type="operator" args="2">:</e>
        <e type="operand">C2</e>
        <e type="operand">y1</e>
        <e type="operand">dx2</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operand">x1</e>
        <e type="operand">dy2</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">S2</e>
        <e type="function" args="1">transpose</e>
        <e type="function" args="2">D</e>
        <e type="operand">0</e>
        <e type="function" args="2">mwle</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ff</e>
        <e type="operand">C1</e>
        <e type="operand">C2</e>
        <e type="function" args="2">mwand</e>
        <e type="function" args="1">mwfind</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ii</e>
        <e type="operand">ff</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
        <e type="operand">jj</e>
        <e type="operand">ff</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ii</e>
        <e type="function" args="1">length</e>
        <e type="operand">0</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="2">Zeros</e>
        <e type="operand">ii</e>
        <e type="operand">ii</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dx2</e>
        <e type="operand">dx2</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">dy2</e>
        <e type="operand">dy2</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">S2</e>
        <e type="operand">S2</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">L</e>
        <e type="operand">dy2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">dx1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operand">dy1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">dx2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">ii</e>
        <e type="operand">ii</e>
        <e type="operand">L</e>
        <e type="operand">0</e>
        <e type="operator" args="2">≠</e>
        <e type="function" args="2">index</e>
        <e type="operator" args="2">:</e>
        <e type="operand">jj</e>
        <e type="operand">jj</e>
        <e type="operand">L</e>
        <e type="operand">0</e>
        <e type="operator" args="2">≠</e>
        <e type="function" args="2">index</e>
        <e type="operator" args="2">:</e>
        <e type="operand">L</e>
        <e type="operand">L</e>
        <e type="operand">L</e>
        <e type="operand">0</e>
        <e type="operator" args="2">≠</e>
        <e type="function" args="2">index</e>
        <e type="operator" args="2">:</e>
        <e type="operand">PP1</e>
        <e type="operand">dx2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">S1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operand">dx1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">S2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">PP2</e>
        <e type="operand">dy2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">S1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operand">dy1</e>
        <e type="operand">ii</e>
        <e type="function" args="2">el</e>
        <e type="operand">S2</e>
        <e type="operand">jj</e>
        <e type="function" args="2">el</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand">PP</e>
        <e type="operand">PP1</e>
        <e type="operand">PP2</e>
        <e type="function" args="2">augment</e>
        <e type="operand">L</e>
        <e type="operand">L</e>
        <e type="function" args="2">augment</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">divide</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
        <e type="operand">PP</e>
        <e type="operand">12</e>
        <e type="operand">1</e>
        <e type="function" args="14">line</e>
        <e type="function" args="3">if</e>
        <e type="operand">16</e>
        <e type="operand">1</e>
        <e type="function" args="18">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="32" left="18" top="6228" width="306" height="24" border="true" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Let's test it with a simple example:</p>
    </text>
  </region>
  <region id="33" left="18" top="6255" width="190" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">L1</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">3</e>
        <e type="operand">4</e>
        <e type="operand">5</e>
        <e type="operand">6</e>
        <e type="operand">8</e>
        <e type="operand">9</e>
        <e type="operand">0</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">2</e>
        <e type="operand">0</e>
        <e type="operand">3</e>
        <e type="operand">0.5</e>
        <e type="operand">2</e>
        <e type="operand">8</e>
        <e type="function" args="18">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="34" left="207" top="6255" width="173" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">L2</e>
        <e type="operand">3</e>
        <e type="operand">4</e>
        <e type="operand">5</e>
        <e type="operand">6</e>
        <e type="operand">6</e>
        <e type="operand">5</e>
        <e type="operand">7</e>
        <e type="operand">9</e>
        <e type="operand">0</e>
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="operand">3</e>
        <e type="operand">2</e>
        <e type="operand">0</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">8</e>
        <e type="function" args="18">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="35" left="234" top="6282" width="293" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">tt</e>
        <e type="operand">L1</e>
        <e type="operand">L2</e>
        <e type="function" args="2">InterX</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">4.5</e>
        <e type="operand">2</e>
        <e type="operand">5.5</e>
        <e type="operand">1</e>
        <e type="operand">5.6667</e>
        <e type="operand">0.6667</e>
        <e type="operand">7.25</e>
        <e type="operand">1.875</e>
        <e type="operand">8.75</e>
        <e type="operand">1.125</e>
        <e type="operand">5</e>
        <e type="operand">2</e>
        <e type="function" args="12">mat</e>
      </result>
    </math>
  </region>
  <region id="36" left="18" top="6381" width="438" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">plot1</e>
        <e type="operand">tt</e>
        <e type="operand">1</e>
        <e type="function" args="2">col</e>
        <e type="operand">tt</e>
        <e type="operand">2</e>
        <e type="function" args="2">col</e>
        <e type="operand" style="string">o</e>
        <e type="operand">12</e>
        <e type="operand" style="string">Green</e>
        <e type="function" args="5">plotG</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="37" left="36" top="6426" width="678" height="222" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="2.87999993185192" scale_y="2.87999993185192" scale_z="2.87999993185192" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-301" transpose_y="-80" transpose_z="0">
      <input>
        <e type="operand">L1</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">L2</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">plot1</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">sys</e>
      </input>
    </plot>
  </region>
  <region id="38" left="18" top="6660" width="258" height="24" border="true" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>and a bit more complicate one:</p>
    </text>
  </region>
  <region id="39" left="27" top="6687" width="156" height="41" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">t</e>
        <e type="operand">0</e>
        <e type="operand">2</e>
        <e type="operand">π</e>
        <e type="operator" args="2">*</e>
        <e type="bracket">(</e>
        <e type="operand">2</e>
        <e type="operand">π</e>
        <e type="operand">100</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">*</e>
        <e type="function" args="3">range</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="40" left="207" top="6687" width="124" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">r1</e>
        <e type="operand">4</e>
        <e type="operand">t</e>
        <e type="operator" args="2">*</e>
        <e type="function" args="1">sin</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">2</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="41" left="369" top="6687" width="124" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">r2</e>
        <e type="operand">8</e>
        <e type="operand">t</e>
        <e type="operator" args="2">*</e>
        <e type="function" args="1">sin</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">2</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="42" left="27" top="6723" width="258" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">x1</e>
        <e type="operand">r1</e>
        <e type="operand">t</e>
        <e type="function" args="1">cos</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="43" left="315" top="6723" width="258" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">y1</e>
        <e type="operand">r1</e>
        <e type="operand">t</e>
        <e type="function" args="1">sin</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="44" left="27" top="6759" width="258" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x2</e>
        <e type="operand">r2</e>
        <e type="operand">t</e>
        <e type="function" args="1">cos</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="45" left="315" top="6759" width="258" height="34" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">y2</e>
        <e type="operand">r2</e>
        <e type="operand">t</e>
        <e type="function" args="1">sin</e>
        <e type="function" args="1">vectorize</e>
        <e type="operand">A</e>
        <e type="operand">B</e>
        <e type="function" args="2">times</e>
        <e type="function" args="3">map</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="46" left="18" top="6795" width="694" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math matrixOptions="0,0,9,2">
      <input>
        <e type="operand">arg1</e>
        <e type="operand">x1</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">y1</e>
        <e type="function" args="1">transpose</e>
        <e type="function" args="2">stack</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">2.2443</e>
        <e type="operand">2.4622</e>
        <e type="operand">2.637</e>
        <e type="operand">2.755</e>
        <e type="operand">2.8066</e>
        <e type="operand">2.7875</e>
        <e type="operand">2.6985</e>
        <e type="operand">2.5455</e>
        <e type="operand">0</e>
        <e type="operand">0.1412</e>
        <e type="operand">0.311</e>
        <e type="operand">0.503</e>
        <e type="operand">0.7074</e>
        <e type="operand">0.9119</e>
        <e type="operand">1.1036</e>
        <e type="operand">1.2698</e>
        <e type="operand">1.3994</e>
        <e type="operand">2</e>
        <e type="operand">9</e>
        <e type="function" args="20">mat</e>
      </result>
    </math>
  </region>
  <region id="47" left="18" top="6840" width="702" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math matrixOptions="0,0,9,2">
      <input>
        <e type="operand">arg2</e>
        <e type="operand">x2</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">y2</e>
        <e type="function" args="1">transpose</e>
        <e type="function" args="2">stack</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">2.4769</e>
        <e type="operand">2.8219</e>
        <e type="operand">2.9449</e>
        <e type="operand">2.8136</e>
        <e type="operand">2.4611</e>
        <e type="operand">1.9761</e>
        <e type="operand">1.4766</e>
        <e type="operand">1.0774</e>
        <e type="operand">0</e>
        <e type="operand">0.1558</e>
        <e type="operand">0.3565</e>
        <e type="operand">0.5618</e>
        <e type="operand">0.7224</e>
        <e type="operand">0.7997</e>
        <e type="operand">0.7824</e>
        <e type="operand">0.6948</e>
        <e type="operand">0.5923</e>
        <e type="operand">2</e>
        <e type="operand">9</e>
        <e type="function" args="20">mat</e>
      </result>
    </math>
  </region>
  <region id="48" left="18" top="6885" width="186" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">aa</e>
        <e type="operand">arg1</e>
        <e type="operand">arg2</e>
        <e type="function" args="2">InterX</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="49" left="216" top="6903" width="438" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">plot2</e>
        <e type="operand">aa</e>
        <e type="operand">1</e>
        <e type="function" args="2">col</e>
        <e type="operand">aa</e>
        <e type="operand">2</e>
        <e type="function" args="2">col</e>
        <e type="operand" style="string">o</e>
        <e type="operand">12</e>
        <e type="operand" style="string">Green</e>
        <e type="function" args="5">plotG</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="50" left="27" top="6930" width="378" height="319" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="6.72749994932561" scale_y="6.72749994932561" scale_z="6.72749994932561" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0">
      <input>
        <e type="operand">arg1</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">arg2</e>
        <e type="function" args="1">transpose</e>
        <e type="operand">plot2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">sys</e>
      </input>
    </plot>
  </region>
  <region id="51" left="405" top="6948" width="339" height="88" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Great! It works!So we have Smath performing like Scilab!Well, almost... The timing of Smath on my hardware says:</p>
    </text>
  </region>
  <region id="52" left="423" top="7038" width="315" height="75" color="#000000" bgColor="#ffffff">
    <picture readOnly="false">
      <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAATMAAABDCAYAAADwDeIrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABPGSURBVHhe7d15dBVVngfw91eP+9JO2zoqrT2OWx/PcQvdrd1tT/eZOeOcGRVpxrYdG8bGtDrazkgr0LgMShABUWhQoyAESEggkARIIITsKyEL2fedJCRkIWyyf+f+br2qd6tSdd/Ley8QyH3nfE7qVdX91b2/e98vVUk4uOqbO1DT0IqKmkaUlFcjf28pdqfnYOPmBDz3UiiGzp5D81mYHGL7Xv/LHKxZswavvPIKurq60N1zKGAqjpyKI6fiyF3qcVQxk1Bx5FQcORVHLthxVDGTUHHkVBw5FUcu2HFUMZNQceRUHDkVRy7YcVQxk1Bx5FQcORVHLthxVDGTUHHkVBw5FUcu2HFUMZNQceRUHDkVRy7YcVQxk1Bx5FQcORVHLthxVDGTUHHkVBw5FUcu2HFUMZNQceRUHDkVRy7YcVQxk1Bx5FQcORVHLthxglbMFEVRLiR1Zyah4sipOHIqjlyw46hiJqHiyKk4ciqOXLDjsGLWzopZCytmDayYVbFiVsKKWTYrZvGqmKk4UiqOnIojF+w4Y6KYnThxQlEUJSBBKWbTp08PSHNzs1+ampoMbW1tWJdSgmnLU/Cz9xMURRlnfCtmZ1gRE9gVs0OHDg2TmZnJ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YLmMHpm/RuODgG0YmeVyH3I2feXMa4bWiiiMY+tGXz9Ef2+lH/fB/BHi7SzXc0Vs2gndquhErNpAtuPryG3MVny1PgEr1mzmlq3axGzkPg3fgE+/0iz+IpL75Mso4+snX27AxyvWY+HnkVjE8G23+cvWcmFLIwxzl3xjeH/xSsO7C782zFkQbpg9/wtuZtjnhrc+XGGYMfevhjcF//P+UsMb731m+NO7n3Kvv7PE8NqcTwzi/nmfrcHcT1bixh8+gPt++byD3+G+xzX3Mvf84re4+2fP4q7HnsWdj07BnT+djB/+ZDJunzgJt4c8jR+QR57CBOa2h5+UmkAe8d8PQp7i17x94tO448eTWD+e4f2567EpuPvnz/K+3vv4c1r/2Th+xMbj5Krrb0Z0/C7sq2pA3t4K5O4t5191+cWVyC+q5PtzCsuQVbDPrRQZeSVIzy1Gak4Rl5K1F8kZe7AzvYDblpKDhJ1Z2JKUgU3b0xCTkIL1sTsQsTER32xg63N9PMLXxmH5N2xdrozBkvAoLFqxDguWr2Vz9A0+WLIK7y/6Cu9+TOuFrZF5y/HWB2wd/B+b//c+xRvvsvmcsxivzl6IV2ctxMtvL0DoWx/hpT/Px/QZYXjxf+fxr+98/CX+Mn8Frr3l3uHz8RD5dwf/htsedEDHOLt2wSReS8SOPWw2gWNrRKevF7Ymac0Y68YXbG356g7DJB9p55vjPI3/BzuOVptD8lieAAAAAElFTkSuQmCC</raw>
    </picture>
  </region>
  <region id="53" left="423" top="7119" width="323" height="24" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>Whilst, on same hardware, Scilab says:</p>
    </text>
  </region>
  <region id="54" left="495" top="7146" width="147" height="90" color="#000000" bgColor="#ffffff">
    <picture readOnly="false">
      <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAIsAAABSCAYAAABkKCcYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQOSURBVHhe7Z3dcaMwFEZpi4YoZF/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Jm6jcry5AxSsPQg/Xvfy/XlGUM6tpetShLjMkRnWQQ5BHM7Bd4LtVPzCzxMDex8f3v5XKyDMGKgi5ijR80sDX6bIsv9d50v1Q/UZbN5T+Jy13gzqdmw6XxfI9vvFaO5bFPGn4Q+8DMyBQfr9WvoyCLnT8pz9sgl/8kriPLmHof1xPDksZyRpYO/6Pn0kffJDA2LLl98fFC/fpgx68JzuHqntknv//nceELXDgaZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAEZZAGRtv0HWuXC+ou+J7sAAAAASUVORK5CYII=</raw>
    </picture>
  </region>
  <region id="55" left="423" top="7236" width="298" height="56" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>and this is expressed in seconds...But anyway Smath is a great tool!!</p>
    </text>
  </region>
  <region id="56" left="18" top="7326" width="591" height="56" color="#000000" bgColor="#80ff80" fontSize="10">
    <text lang="eng">
      <p>In the hope that these brief notes could be of help to somebody, enjoy!Marco</p>
    </text>
  </region>
</regions>