﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6654.24670"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <shortcut>Worst Case Analysis</shortcut>
    <identity>
      <id>e162a747-c8b2-4f40-95df-39d17e3aa6ae</id>
      <revision>80</revision>
    </identity>
    <metadata lang="eng">
      <title>Snippet: WCA Toolkit</title>
      <author>Arie Lyles</author>
      <description>This snippet contains functions used in performing worst case anaylsis and RSS analysis on user defined functions.</description>
    </metadata>
    <calculation>
      <precision>7</precision>
      <exponentialThreshold>7</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.6654.24670" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.6654.24670" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Picture Region" version="1.10.6654.24672" guid="06b5df04-393e-4be7-9107-305196fcb861" />
      <assembly name="Special Functions" version="1.11.6654.24672" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Text Region" version="1.10.6654.24672" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Writer Region" version="0.10.6651.13450" guid="5922d677-323f-4327-8c68-be902d8339ad" />
    </dependencies>
  </settings>
  <region id="0" top="45" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>snippet: varManager 2012.03.03</p>
      </title>
    </area>
    <region id="1" left="27" top="63" width="373" height="115" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="2" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>check if #var is an array</p>
        </description>
        <input>
          <e type="operand">#var</e>
          <e type="function" args="1">IsArray</e>
          <e type="operand">#var</e>
          <e type="function" args="1">IsString</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#e</e>
          <e type="operand">#var</e>
          <e type="function" args="1">num2str</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#e</e>
          <e type="operand" style="string">mat(</e>
          <e type="function" args="2">findstr</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">0</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operand">0</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="2" left="27" top="216" width="417" height="31" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="2" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>check if #var is a number</p>
        </description>
        <input>
          <e type="operand">#var</e>
          <e type="function" args="1">IsScalar</e>
          <e type="operand">#var</e>
          <e type="function" args="1">IsArray</e>
          <e type="operator" args="1">¬</e>
          <e type="bracket">(</e>
          <e type="operand">#var</e>
          <e type="function" args="1">IsString</e>
          <e type="operator" args="1">¬</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&amp;</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="3" left="27" top="288" width="470" height="164" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>returns rows and columns of an arrayreturns 1 if #var is a numberreturns "text" if #var is a string</p>
        </description>
        <input>
          <e type="operand">#var</e>
          <e type="function" args="1">size</e>
          <e type="operand">#var</e>
          <e type="function" args="1">IsString</e>
          <e type="operator" args="1">¬</e>
          <e type="operand">#var</e>
          <e type="function" args="1">num2str</e>
          <e type="operand" style="string">mat(</e>
          <e type="function" args="2">findstr</e>
          <e type="function" args="1">stack</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#var</e>
          <e type="function" args="1">rows</e>
          <e type="operand">#var</e>
          <e type="function" args="1">cols</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="1">eval</e>
          <e type="operand">1</e>
          <e type="function" args="3">if</e>
          <e type="operand" style="string">text</e>
          <e type="function" args="3">if</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="4" left="27" top="522" width="465" height="317" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>returns summation of M.D.A. elements</p>
        </description>
        <input>
          <e type="operand">#var</e>
          <e type="function" args="1">sum.1</e>
          <e type="operand">#size</e>
          <e type="operand">#var</e>
          <e type="function" args="1">size</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size</e>
          <e type="operand" style="string">text</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">0</e>
          <e type="operand">#size</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#var</e>
          <e type="operand">#output</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#i</e>
          <e type="operand">1</e>
          <e type="operand">#size</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">range</e>
          <e type="operand">#j</e>
          <e type="operand">1</e>
          <e type="operand">#size</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">range</e>
          <e type="operand">#var</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">size</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#output</e>
          <e type="operand">#output</e>
          <e type="operand">#var</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#output</e>
          <e type="operand">#output</e>
          <e type="operand">#var</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">sum.1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
          <e type="function" args="3">for</e>
          <e type="operand">#output</e>
          <e type="function" args="1">eval</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">if</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="5" left="27" top="873" width="968" height="1061" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2" decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>compare #var1 and #var2, using  a text #bool parameter (≡,&lt;,&gt;,≤,≥,≠)works with numbers, strings, arrays and multi dimensional arrays</p>
        </description>
        <input>
          <e type="operand">#var1</e>
          <e type="operand">#bool</e>
          <e type="operand">#var2</e>
          <e type="function" args="3">compare</e>
          <e type="operand">#bool</e>
          <e type="operand">#bool</e>
          <e type="operand" style="string">=</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operand" style="string">≡</e>
          <e type="operand">#bool</e>
          <e type="function" args="3">if</e>
          <e type="operator" args="2">:</e>
          <e type="operand">bools.allowed</e>
          <e type="operand" style="string">≡</e>
          <e type="operand" style="string">&lt;</e>
          <e type="operand" style="string">&gt;</e>
          <e type="operand" style="string">≤</e>
          <e type="operand" style="string">≥</e>
          <e type="operand" style="string">≠</e>
          <e type="operand">1</e>
          <e type="operand">6</e>
          <e type="function" args="8">mat</e>
          <e type="function" args="1">transpose</e>
          <e type="operator" args="2">:</e>
          <e type="operand">bools.status</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operand">bools.allowed</e>
          <e type="function" args="1">length</e>
          <e type="function" args="2">range</e>
          <e type="operand">#bool</e>
          <e type="operand">bools.allowed</e>
          <e type="operand">n</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">bools.status</e>
          <e type="operand">bools.status</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">0</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operand">bools.status</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#v1</e>
          <e type="operand">#var1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#v2</e>
          <e type="operand">#var2</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size1</e>
          <e type="operand">#v1</e>
          <e type="function" args="1">size</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size2</e>
          <e type="operand">#v2</e>
          <e type="function" args="1">size</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size1</e>
          <e type="operand" style="string">text</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operand">#size2</e>
          <e type="operand" style="string">text</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">|</e>
          <e type="operand">#bool</e>
          <e type="operand" style="string">≡</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#v1</e>
          <e type="operand">#v2</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#bool</e>
          <e type="operand" style="string">≠</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#v1</e>
          <e type="operand">#v2</e>
          <e type="operator" args="2">≠</e>
          <e type="operand" style="string">I can't determine if a string is larger or smaller than a number/matrix</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">if</e>
          <e type="operand">#size1</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operand">#size2</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&amp;</e>
          <e type="operand">#v1</e>
          <e type="function" args="1">num2str</e>
          <e type="operand">#bool</e>
          <e type="operand">#v2</e>
          <e type="function" args="1">num2str</e>
          <e type="function" args="3">concat</e>
          <e type="function" args="1">str2num</e>
          <e type="operand">#size1</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operand">#size2</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">|</e>
          <e type="operand">#size1</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#v1</e>
          <e type="operand">#v1</e>
          <e type="operand">#size2</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">#size2</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size1</e>
          <e type="operand">#size2</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">#v2</e>
          <e type="operand">#v2</e>
          <e type="operand">#size1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">#size1</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#size2</e>
          <e type="operand">#size1</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">if</e>
          <e type="operand">0</e>
          <e type="function" args="3">if</e>
          <e type="operand">#size1</e>
          <e type="operand">#size2</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">#output</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#i</e>
          <e type="operand">1</e>
          <e type="operand">#size1</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">range</e>
          <e type="operand">#j</e>
          <e type="operand">1</e>
          <e type="operand">#size1</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">range</e>
          <e type="operand">#v1</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">size</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operand">#v2</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">size</e>
          <e type="operand">1</e>
          <e type="operator" args="2">≡</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&amp;</e>
          <e type="operand">#output</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="operand">#v1</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">num2str</e>
          <e type="operand">#bool</e>
          <e type="operand">#v2</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="1">num2str</e>
          <e type="function" args="3">concat</e>
          <e type="function" args="1">str2num</e>
          <e type="operator" args="2">:</e>
          <e type="operand">#output</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="operand">#v1</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="operand">#bool</e>
          <e type="operand">#v2</e>
          <e type="operand">#i</e>
          <e type="operand">#j</e>
          <e type="function" args="3">el</e>
          <e type="function" args="3">compare</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
          <e type="function" args="3">for</e>
          <e type="operand">#output</e>
          <e type="function" args="1">eval</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="operand" style="string">I can't compare matrix with different sizes</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="3">if</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">if</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">line</e>
          <e type="operand" style="string">unallowed boolean: </e>
          <e type="operand">#bool</e>
          <e type="function" args="2">concat</e>
          <e type="function" args="3">if</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="6" top="1980" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="7" top="2034" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>Index Definitions</p>
      </title>
    </area>
    <region id="8" left="9" top="2070" width="62" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <input>
          <e type="operand">MIN</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="9" left="9" top="2106" width="62" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <input>
          <e type="operand">NOM</e>
          <e type="operand">2</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="10" left="9" top="2142" width="62" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <input>
          <e type="operand">MAX</e>
          <e type="operand">3</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="11" top="2196" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="12" top="2241" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>Supporting Function Definitions</p>
      </title>
    </area>
    <region id="13" left="9" top="2340" width="714" height="368" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>Sort Input takes a single input vector I# whose elements are either 3x1 vectors or scalar. It then sorts each individual 3x1 element of I#. If the nth element is a scalar, it creates a 3x1 vectorof the containing only the nth element in each row. The function returns the number of elements (rows) in I# (n#), the now sorted sub-elements of I#, and the n#-by-1 vector containing the second element of each subelement. </p>
        </description>
        <input>
          <e type="operand">I#</e>
          <e type="function" args="1">SortInput</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">i</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">IsArray</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">size</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operator" args="2">≠</e>
          <e type="operand" style="string">Each element in I must either be scalar or a 3x1 vector</e>
          <e type="function" args="1">error</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operand">I.NOMINAL</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sort</e>
          <e type="operand">NOM</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sort</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">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">3</e>
          <e type="function" args="1">Ones</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I.NOMINAL</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">NOM</e>
          <e type="function" args="2">el</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">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="4">for</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="operand">I.NOMINAL</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">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="14" top="2817" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="15" top="2871" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>WC.EVA</p>
      </title>
    </area>
    <region id="16" left="0" top="2952" width="451" height="696" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2" decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>This function performs a brute force Extreme Value Analysis for a user-defined function and it's inputs.For a function with n inputs, it will calculate the result of function with 2^n permutations of it's inputs. The function returns the Minimum, Nominal and Maximum results. </p>
        </description>
        <input>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I#</e>
          <e type="function" args="2">WC.EVA</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="operand">I.NOM#</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">I#</e>
          <e type="function" args="1">SortInput</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">n#</e>
          <e type="function" args="2">range</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">IsArray</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">min</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">max</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</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">j</e>
          <e type="operand">i</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">stack</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="function" args="2">while</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sort</e>
          <e type="operator" args="2">:</e>
          <e type="operand">j</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">n#</e>
          <e type="function" args="2">range</e>
          <e type="operand">i</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">stack</e>
          <e type="operator" args="2">:</e>
          <e type="operand">continue</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">line</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">Ones</e>
          <e type="operand">I#</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="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="2">range</e>
          <e type="operand">I.TEMP#</e>
          <e type="operand">n#</e>
          <e type="function" args="1">Zeros</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">n#</e>
          <e type="function" args="2">range</e>
          <e type="operand">I.TEMP#</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.EVA#</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">result#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.TEMP#</e>
          <e type="function" args="1">f</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="operand">result#</e>
          <e type="function" args="1">min</e>
          <e type="operand">I.NOM#</e>
          <e type="function" args="1">f</e>
          <e type="operand">result#</e>
          <e type="function" args="1">max</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</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="17" left="81" top="3762" width="485" height="406" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <input>
          <e type="operand">I#</e>
          <e type="operand">n#</e>
          <e type="function" args="2">param1</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">n#</e>
          <e type="function" args="2">range</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">IsArray</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">min</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">max</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</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">j</e>
          <e type="operand">i</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">stack</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="function" args="2">while</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sort</e>
          <e type="operator" args="2">:</e>
          <e type="operand">j</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">n#</e>
          <e type="function" args="2">range</e>
          <e type="operand">i</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">stack</e>
          <e type="operator" args="2">:</e>
          <e type="operand">continue</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">line</e>
          <e type="operand">param#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">Ones</e>
          <e type="operand">I#</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="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">if</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">param#</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="18" top="4176" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="19" top="4230" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>WC.DIFFEVA</p>
      </title>
    </area>
    <region id="20" left="27" top="4338" width="430" height="453" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>The function WC.DIFFEVA accepts an arbitrary function, f, and an array of input arguments, I. The array 'I' is an Nx1 array of inputs to the function 'f', where N N is the required number of inputs for 'f' i.e. f(x1, x2,..., xN). Each argument in 'I' must either be a scalar, or a 3x1 vector containing the min,nom, and max values for that variable.  WC.DIFFEVA performs the worst case calculation of the function 'f' for each variablein 'I' and returns a 2x1 array. Rather than computing results for all permutations of inputs,this function performs the partial differential w.r.t. each input variable and computes the,max, min and nominal results. The first result in the 2x1 array is a 3x1 array containingthe Min, Nom, Max result of 'f' for the inputs in 'I'. The second result in the 2x1 array is an Nx1 array containing the differential coefficients </p>
        </description>
        <input>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I#</e>
          <e type="function" args="2">WC.DIFFEVA</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="operand">I.NOM#</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">I#</e>
          <e type="function" args="1">SortInput</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">i</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">diff#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.NOM#</e>
          <e type="function" args="1">f</e>
          <e type="operand">I.NOM#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">diff</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">:</e>
          <e type="operand">diff#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">diff#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">diff#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">UoM</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
          <e type="operand">diff_sign#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">diff#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sign</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I.MAX#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">diff_sign#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I.MIN#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">diff_sign#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">2</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">abs</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="operand">5</e>
          <e type="operand">1</e>
          <e type="function" args="7">line</e>
          <e type="function" args="4">for</e>
          <e type="operand">I.MIN#</e>
          <e type="function" args="1">f</e>
          <e type="operand">I.NOM#</e>
          <e type="function" args="1">f</e>
          <e type="operand">I.MAX#</e>
          <e type="function" args="1">f</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">diff_sign#</e>
          <e type="operand">diff#</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</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="21" top="5040" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="22" top="5085" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>WC.RSS</p>
      </title>
    </area>
    <region id="23" left="0" top="5175" width="813" height="435" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="6" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>The function WC.RSS accepts an arbitrary function, f, and an array of input arguments, I. The array 'I' is an Nx1 array of inputs to the function 'f', where N N is the required number of inputs for 'f' i.e. f(x1, x2,..., xN). Each argument in 'I' must either be a scalar, or a 3x1 vector containing the min,nom, and max values for that variable.  WC.RSS performs the RSS calculation of the function 'f' for each variablein 'I' and returns a 2x1 array. The first result in the 2x1 array is a 3x1 array containingthe Min, Nom, Max RSS result of 'f' for the inputs in 'I'. The second result is the overal % tolerance calculated.  I assume that all input variables have 3σ tolerances that result in a 3σ result.</p>
        </description>
        <input>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I#</e>
          <e type="function" args="2">WC.RSS</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">I#</e>
          <e type="function" args="1">SortInput</e>
          <e type="operator" args="2">:</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f.NOM#</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="function" args="1">f</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">n#</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">i</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">ΔI1#</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">NOM</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">MIN</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">ΔI2#</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">MAX</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">NOM</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="function" args="1">f</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">diff</e>
          <e type="operand">ΔI1#</e>
          <e type="operator" args="2">*</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="function" args="1">f</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="function" args="2">diff</e>
          <e type="operand">ΔI2#</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="2">Max</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="4">for</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operand">TOL.RSS#</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">:</e>
          <e type="operand">f.NOM#</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operator" args="2">-</e>
          <e type="operand">f.NOM#</e>
          <e type="operand">f.NOM#</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operator" args="2">+</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">TOL.RSS#</e>
          <e type="operand">f.NOM#</e>
          <e type="operator" args="2">/</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="24" top="5859" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="25" top="5904" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>WC.MC</p>
      </title>
    </area>
    <region id="26" left="27" top="6030" width="639" height="390" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2" decimalPlaces="4" exponentialThreshold="5" trailingZeros="true">
        <description active="true" position="Top" lang="eng">
          <p>The function WC.MC accepts an arbitrary function (f), an array of input arguments(I) and the number of simulations to run (N) . The array 'I' is an nx1 array of inputs to the function 'f', where n n is the required number of inputs for 'f' i.e. f(x1, x2,..., xn). Each argument in 'I' must either be a scalar, or a 3x1 vector containing the min,nom, and max values for that variable. WC.MC performs a Monte Carlo simulation assuming uniform distribution. The first result in the 2x1 array is a 2x1 array containingthe Min, Max results of the simulation The second result in the 2x1 array is an Nx1 array containing results of the N simulations. </p>
        </description>
        <input>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I#</e>
          <e type="operand">N#</e>
          <e type="function" args="3">WC.MC</e>
          <e type="operand">n#</e>
          <e type="operand">I#</e>
          <e type="operand">I.NOMINAL#</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operand">I#</e>
          <e type="function" args="1">SortInput</e>
          <e type="operator" args="2">:</e>
          <e type="operand">I.MC#</e>
          <e type="operand">I#</e>
          <e type="function" args="1">length</e>
          <e type="function" args="1">Zeros</e>
          <e type="operator" args="2">:</e>
          <e type="operand">results#</e>
          <e type="operand">N#</e>
          <e type="function" args="1">Zeros</e>
          <e type="operator" args="2">:</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">I#</e>
          <e type="function" args="1">length</e>
          <e type="function" args="2">range</e>
          <e type="operand">I.MC#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">MIN</e>
          <e type="function" args="2">el</e>
          <e type="operand">N#</e>
          <e type="function" args="1">Random</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">MAX</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">I#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">MIN</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</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="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">i</e>
          <e type="operand">1</e>
          <e type="operand">N#</e>
          <e type="function" args="2">range</e>
          <e type="operand">I.TEMP#</e>
          <e type="operand">I#</e>
          <e type="function" args="1">length</e>
          <e type="function" args="1">Zeros</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">I#</e>
          <e type="function" args="1">length</e>
          <e type="function" args="2">range</e>
          <e type="operand">I.TEMP#</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.MC#</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">result#</e>
          <e type="operand">i</e>
          <e type="function" args="2">el</e>
          <e type="operand">I.TEMP#</e>
          <e type="function" args="1">f</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">result#</e>
          <e type="function" args="1">Min</e>
          <e type="operand">result#</e>
          <e type="function" args="1">Max</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operand">result#</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">mat</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="27" left="18" top="6633" width="294" height="31" color="#000000" bgColor="#ffffff" fontSize="10">
      <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
        <input>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I</e>
          <e type="function" args="2">WC.MC</e>
          <e type="operand">_1</e>
          <e type="function" args="1">f</e>
          <e type="operand">I#</e>
          <e type="operand">1000</e>
          <e type="function" args="3">WC.MC</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="28" top="6687" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="29" left="0" top="6750" width="772" height="176" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>This set of functions performs various worst-case analyses on other user-defined functions. The user-defined functions and their inputs must defined in a particular way in order for these functions to work properly. Each function must only accept one input vector. However, that vector may be of any size n. Each user defined function must define it&#39;s input vector within the function. Consider the following simple example:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I&#39;d like to define a function that represents the output of this circuit in terms of V1, R1, and R2. </div></span>]]></writer>
  </region>
  <region id="30" left="0" top="6966" width="392" height="307" color="#000000" bgColor="#ffffff">
    <picture>
      <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAsQAAAIoCAYAAABu0/16AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAB1LSURBVHhe7d3ddavItoBR5+NUHIpzuM8OxHnszHRR70O3bC0tAYL6oebDfKmBkZqzx9J3GCX09ufPnwsAAIxKEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8QAAAxNEAMAMDRBDADA0AQxAABDE8SJt7cLAAVFsxjgaII4YTgDlGPmArUI4oThDFCOmQvUIogThjNAOWYuUIsgThjOAOWYuUAtgjhhOAOUY+YCtQjihOEMUI6ZC9QiiBOGM0A5Zi5QiyBOGM4A5Zi5QC2COGE4A5Rj5gK1COKE4QxQjpkL1CKIE4YzQDlmLlCLIE4YzgDlmLlALYI4YTgDlGPmArUI4oThDFCOmQvUIogThjNAOWYuUIsgThjOAOWYuUAtgjhhOAOUY+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qBTDAIxOEMOOeotLMQwAghh210tkimEA+EsQwwFaj00xDAD/EcRwkFajUwwDwE+CGA7UWnyKYQC4J4jhYK1EqBgGgJgghgJqx6gYBoDHBDEUUitKxTAA5AQxFFQ6TsUwADwniKGwUpEqhgFgGUEMFRwdq2IYAJYTxFDJUdEqhgFgHUEMFe0dr2IYANYTxFDZXhErhgFgG0EMDXg1ZsUwAGwniKERW6NWDAPAawQxNGRt3IphAHidIIbGLI1cMQwA+xDE0KBnsSuGAWA/ghga9Sh6xTAA7EsQQ8N+x68YBoD9CWJo3BzBYhgAjiGIoQNiGACOI4gBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAoQliAACGJogBABiaIAYAYGiCGACAgf25/D83NsmtHMbdnQAAAABJRU5ErkJggg==</raw>
    </picture>
  </region>
  <region id="31" left="0" top="7317" width="295" height="173" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">I#</e>
        <e type="function" args="1">V.OUT</e>
        <e type="operand" style="string">Defining Input Vector I</e>
        <e type="operand">V.1#</e>
        <e type="operand">I#</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="operand">R.1#</e>
        <e type="operand">I#</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="operand">R.2#</e>
        <e type="operand">I#</e>
        <e type="operand">3</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">Defining Function</e>
        <e type="operand">V.1#</e>
        <e type="operand">R.2#</e>
        <e type="operand">R.1#</e>
        <e type="operand">R.2#</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">*</e>
        <e type="operand">6</e>
        <e type="operand">1</e>
        <e type="function" args="8">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="32" left="0" top="7533" width="772" height="68" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Define inputs to <img src="#" alt="V.OUT" data-style="font-family: 'Courier New'; font-size: 12pt; color: Black; background-color: Transparent" />. I will define the inputs as 3x1 vectors in the form of [MIN,NOM,MAX]. These inputs could be scalars and the Worst Case Analysis functions will handle them properly.  </div></span>]]></writer>
  </region>
  <region id="33" left="9" top="7614" width="273" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Assuming R1 is 5% 4.99k resistor</p>
    </text>
  </region>
  <region id="34" left="351" top="7623" width="257" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Assuming R2 is 1% 39k resistor</p>
    </text>
  </region>
  <region id="35" left="9" top="7641" width="154" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">R.1</e>
        <e type="operand">4.99</e>
        <e type="operand" style="unit">kΩ</e>
        <e type="operator" args="2">*</e>
        <e type="operand">95</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">100</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">105</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="36" left="360" top="7650" width="138" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">R.2</e>
        <e type="operand">39</e>
        <e type="operand" style="unit">kΩ</e>
        <e type="operator" args="2">*</e>
        <e type="operand">99</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">100</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">101</e>
        <e type="operand" style="unit">%</e>
        <e type="operator" args="2">*</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="37" left="9" top="7767" width="357" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Assuming V1 can vary between 4.5-5.5 volts</p>
    </text>
  </region>
  <region id="38" left="9" top="7803" width="94" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.1</e>
        <e type="operand">4.5</e>
        <e type="operand">5</e>
        <e type="operand">5.5</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operand" style="unit">V</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="39" left="0" top="7992" width="771" height="29" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Performing brute force EVA</div></span>]]></writer>
  </region>
  <region id="40" left="126" top="8028" width="317" height="85" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.EVA</e>
        <e type="operand">_1</e>
        <e type="function" args="1">V.OUT</e>
        <e type="operand">V.1</e>
        <e type="operand">R.1</e>
        <e type="operand">R.2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="function" args="2">WC.EVA</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.96230</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.90919</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="41" left="0" top="8172" width="772" height="50" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Performing partial differentiation based EVA. Note results correlate exactly for this example which is to be expected.</div></span>]]></writer>
  </region>
  <region id="42" left="63" top="8244" width="304" height="85" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.DIFFEVA</e>
        <e type="operand">Result.DIFF</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
        <e type="operand">_1</e>
        <e type="function" args="1">V.OUT</e>
        <e type="operand">V.1</e>
        <e type="operand">R.1</e>
        <e type="operand">R.2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="function" args="2">WC.DIFFEVA</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="43" left="126" top="8334" width="162" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.DIFFEVA</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.96230</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.90919</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="44" left="0" top="8415" width="243" height="132" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">Result.DIFF</e>
      </input>
      <result action="numeric">
        <e type="operand">1.00000</e>
        <e type="operand">1.00000</e>
        <e type="operator" args="1">-</e>
        <e type="operand">1.00000</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operand">0.88657</e>
        <e type="operand">0.00010</e>
        <e type="operator" args="1">-</e>
        <e type="operand">1.28933</e>
        <e type="operand">10</e>
        <e type="operand">5</e>
        <e type="operator" args="1">-</e>
        <e type="operator" args="2">^</e>
        <e type="operator" args="2">*</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="45" left="243" top="8433" width="418" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>sign of partial differential w.r.t.  each variable</p>
    </text>
  </region>
  <region id="46" left="243" top="8496" width="266" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>unitless result of partial diff</p>
    </text>
  </region>
  <region id="47" left="0" top="8622" width="771" height="29" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Performing RSS </div></span>]]></writer>
  </region>
  <region id="48" left="72" top="8676" width="239" height="85" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2" decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.RSS</e>
        <e type="operand">V.RSS%</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
        <e type="operand">_1</e>
        <e type="function" args="1">V.OUT</e>
        <e type="operand">V.1</e>
        <e type="operand">R.1</e>
        <e type="operand">R.2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="function" args="2">WC.RSS</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="49" left="72" top="8775" width="137" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.RSS</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.98880</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.87685</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="50" left="72" top="8856" width="137" height="30" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.RSS%</e>
      </input>
      <contract>
        <e type="operand" style="unit">%</e>
      </contract>
      <result action="numeric">
        <e type="operand">10.01671</e>
      </result>
    </math>
  </region>
  <region id="51" left="0" top="8919" width="771" height="29" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Performing Monte Carlo Analysis.</div></span>]]></writer>
  </region>
  <region id="52" left="45" top="8991" width="295" height="85" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2" decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.MC</e>
        <e type="operand">V.MC_DATA</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
        <e type="operand">_1</e>
        <e type="function" args="1">V.OUT</e>
        <e type="operand">V.1</e>
        <e type="operand">R.1</e>
        <e type="operand">R.2</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
        <e type="operand">1000</e>
        <e type="function" args="3">WC.MC</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="53" left="72" top="9126" width="130" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.MC</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.97475</e>
        <e type="operand">4.90366</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="54" left="0" top="9225" width="771" height="29" color="#000000" bgColor="#ffffff">
    <writer lang="eng" wrap="Page" width="758"><![CDATA[<span style="font-family: 'Arial'; font-size: 12pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; text-align: left; line-height: 115%">
<div>Summary of Results</div></span>]]></writer>
  </region>
  <region id="55" left="63" top="9261" width="135" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Brute Force EVA</p>
    </text>
  </region>
  <region id="56" left="342" top="9270" width="94" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>RSS Method</p>
    </text>
  </region>
  <region id="57" left="54" top="9288" width="137" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.EVA</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.96230</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.90919</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="58" left="324" top="9288" width="137" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.RSS</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.98880</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.87685</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="59" left="27" top="9387" width="210" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Partial Differential EVA</p>
    </text>
  </region>
  <region id="60" left="315" top="9387" width="176" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>Monte Carlo Analysis</p>
    </text>
  </region>
  <region id="61" left="63" top="9405" width="162" height="63" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.DIFFEVA</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.96230</e>
        <e type="operand">4.43283</e>
        <e type="operand">4.90919</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" args="5">mat</e>
      </result>
    </math>
  </region>
  <region id="62" left="324" top="9405" width="130" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="5" exponentialThreshold="5" trailingZeros="true">
      <input>
        <e type="operand">V.MC</e>
      </input>
      <contract>
        <e type="operand" style="unit">V</e>
      </contract>
      <result action="numeric">
        <e type="operand">3.97475</e>
        <e type="operand">4.90366</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="63" left="9" top="9531" width="690" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
    <math trailingZeros="true">
      <input>
        <e type="operand">V.MC</e>
        <e type="operand">V.MC_DATA</e>
        <e type="operand">V.DIFFEVA</e>
        <e type="operand">Result.DIFF</e>
        <e type="operand">V.RSS</e>
        <e type="operand">V.RSS%</e>
        <e type="operand">V.EVA</e>
        <e type="operand">V.1</e>
        <e type="operand">R.1</e>
        <e type="operand">R.2</e>
        <e type="operand">_1</e>
        <e type="function" args="1">V.OUT</e>
        <e type="function" args="11">Clear</e>
      </input>
      <result action="numeric">
        <e type="operand">1.0000000</e>
      </result>
    </math>
  </region>
</regions>