﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7251.32800"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>197c603b-152f-47af-8fe2-5bd810ef05e4</id>
      <revision>21</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="49" bottom="49" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.7251.32800" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7251.32800" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="PictureRegion" version="1.10.7251.32800" guid="06b5df04-393e-4be7-9107-305196fcb861" />
      <assembly name="SpecialFunctions" version="1.12.7251.32800" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7251.32800" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Writer Region" version="0.22.7200.15900" guid="5922d677-323f-4327-8c68-be902d8339ad" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="27" top="9" width="461" height="32" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Times New Roman'; font-size: 11pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong>RAIN FALL ANALYSIS - Standardized Precipitation Index (<span style="color: Red">SPI</span>)</strong></span></div></span>]]></writer>
    </region>
    <region left="27" top="45" width="391" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" fontName="Arial">SAMPLE with First 10 Elements of Original DATA </p>
      </text>
    </region>
    <region left="27" top="90" width="93" height="190" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="operand">30.4</e>
          <e type="operand">278.7</e>
          <e type="operand">63.9</e>
          <e type="operand">387.1</e>
          <e type="operand">330</e>
          <e type="operand">187.3</e>
          <e type="operand">495.9</e>
          <e type="operand">18</e>
          <e type="operand">163.3</e>
          <e type="operand">128.8</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="270" top="108" width="91" height="26" color="#000000" bgColor="#ffb0ff" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="function" args="1">min</e>
        </input>
        <result action="numeric">
          <e type="operand">18</e>
        </result>
      </math>
    </region>
    <region left="270" top="144" width="115" height="26" color="#000000" bgColor="#ffb0ff" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="function" args="1">max</e>
        </input>
        <result action="numeric">
          <e type="operand">495.9</e>
        </result>
      </math>
    </region>
    <region left="270" top="189" width="128" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">n</e>
          <e type="operand">X</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">10</e>
        </result>
      </math>
    </region>
    <region left="27" top="306" width="679" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p>-----------------------------------------------------------------------------------</p>
      </text>
    </region>
    <region left="27" top="324" width="188" height="33" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Calibri'; font-size: 12pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong><span style="color: Black">3. Dealing with zero values</span></strong></span></div></span>]]></writer>
    </region>
    <region left="27" top="360" width="176" height="282" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Program 2: To deal 
with ln(0)</p>
        </description>
        <input>
          <e type="operand">n.zero</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="operand">X</e>
          <e type="function" args="1">rows</e>
          <e type="function" args="2">range</e>
          <e type="operand">X</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">LNX</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">n.zero</e>
          <e type="operand">n.zero</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">pos</e>
          <e type="operand">n.zero</e>
          <e type="function" args="2">el</e>
          <e type="operand">j</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="operand">LNX</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="operand">X</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">ln</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="function" args="3">for</e>
          <e type="operand">n.zero</e>
          <e type="operand">0</e>
          <e type="operator" args="2">≡</e>
          <e type="operand">pos</e>
          <e type="operand" style="string">Undefined</e>
          <e type="operator" args="2">:</e>
          <e type="operand">pos</e>
          <e type="operand">pos</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
        </input>
      </math>
    </region>
    <region left="252" top="387" width="107" height="190" color="#000000" fontSize="10">
      <math decimalPlaces="3" matrixOptions="0,0,1,14">
        <description active="true" position="Top" lang="eng">
          <p>ln(x) values</p>
        </description>
        <input>
          <e type="operand">LNX</e>
        </input>
        <result action="numeric">
          <e type="operand">3.414</e>
          <e type="operand">5.63</e>
          <e type="operand">4.157</e>
          <e type="operand">5.959</e>
          <e type="operand">5.799</e>
          <e type="operand">5.233</e>
          <e type="operand">6.206</e>
          <e type="operand">2.89</e>
          <e type="operand">5.096</e>
          <e type="operand">4.858</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
        </result>
      </math>
    </region>
    <region left="468" top="387" width="91" height="190" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
        </input>
        <result action="numeric">
          <e type="operand">30.4</e>
          <e type="operand">278.7</e>
          <e type="operand">63.9</e>
          <e type="operand">387.1</e>
          <e type="operand">330</e>
          <e type="operand">187.3</e>
          <e type="operand">495.9</e>
          <e type="operand">18</e>
          <e type="operand">163.3</e>
          <e type="operand">128.8</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
        </result>
      </math>
    </region>
    <region left="585" top="387" width="140" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="2" matrixOptions="0,0,1,13">
        <description active="true" position="Top" lang="eng">
          <p>Index of the LNX 
array where LNX = 0</p>
        </description>
        <input>
          <e type="operand">pos</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">Undefined</e>
        </result>
      </math>
    </region>
    <region left="27" top="702" width="99" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="2">
        <description active="true" position="Left" lang="eng">
          <p>Clear j from memory</p>
        </description>
        <input>
          <e type="operand">j</e>
          <e type="function" args="1">Clear</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
        </result>
      </math>
    </region>
    <region left="27" top="747" width="173" height="54" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math decimalPlaces="8">
        <input>
          <e type="operand">X.mean</e>
          <e type="operand">X</e>
          <e type="function" args="1">sum</e>
          <e type="operand">n</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">208.34</e>
        </result>
      </math>
    </region>
    <region left="243" top="747" width="245" height="54" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math decimalPlaces="9">
        <input>
          <e type="operand">LNX.mean</e>
          <e type="operand">LNX</e>
          <e type="function" args="1">sum</e>
          <e type="operand">n</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">4.924298109</e>
        </result>
      </math>
    </region>
    <region left="27" top="810" width="679" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p>-----------------------------------------------------------------------------------</p>
      </text>
    </region>
    <region left="27" top="837" width="173" height="33" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Calibri'; font-size: 12pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong><span style="color: Black">4. Gamma PDF and CDF</span></strong></span></div></span>]]></writer>
    </region>
    <region left="27" top="873" width="69" height="30" color="#000000" bgColor="#e9e9e9" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Number of 
zero values</p>
        </description>
        <input>
          <e type="operand">n.zero</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
        </result>
      </math>
    </region>
    <region left="360" top="873" width="135" height="47" color="#000000" bgColor="#e9e9e9" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Prob of zero values</p>
        </description>
        <input>
          <e type="operand">Pr.zero</e>
          <e type="operand">n.zero</e>
          <e type="operand">n</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
        </result>
      </math>
    </region>
    <region left="27" top="1008" width="275" height="32" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math decimalPlaces="9" matrixOptions="0,0,1,22">
        <input>
          <e type="operand">A</e>
          <e type="operand">X.mean</e>
          <e type="function" args="1">ln</e>
          <e type="operand">LNX.mean</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.414873251</e>
        </result>
      </math>
    </region>
    <region left="567" top="1035" width="193" height="26" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math decimalPlaces="9">
        <input>
          <e type="operand">0.5</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">1.772456367</e>
        </result>
      </math>
    </region>
    <region left="27" top="1062" width="287" height="45" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math decimalPlaces="9">
        <input>
          <e type="operand">α</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="operand">A</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="operand">4</e>
          <e type="operand">A</e>
          <e type="operand">3</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">1.353582167</e>
        </result>
      </math>
    </region>
    <region left="360" top="1062" width="190" height="47" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math decimalPlaces="8">
        <input>
          <e type="operand">β</e>
          <e type="operand">X.mean</e>
          <e type="operand">α</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">153.91751239</e>
        </result>
      </math>
    </region>
    <region left="567" top="1080" width="179" height="26" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math decimalPlaces="9">
        <input>
          <e type="operand">α</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">0.890795288</e>
        </result>
      </math>
    </region>
    <region left="567" top="1125" width="177" height="26" color="#000000" bgColor="#d2ffa6" fontSize="10">
      <math decimalPlaces="9">
        <input>
          <e type="operand">1</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">1.000001604</e>
        </result>
      </math>
    </region>
    <region left="27" top="1188" width="262" height="69" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Eqn for Gamma function PDF</p>
        </description>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">g</e>
          <e type="operand">1</e>
          <e type="operand">β</e>
          <e type="operand">α</e>
          <e type="operator" args="2">^</e>
          <e type="operand">α</e>
          <e type="function" args="1">Gamma</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="operand">α</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">e</e>
          <e type="operand">x</e>
          <e type="operand">β</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="450" top="1197" width="139" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">α</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">0.8908</e>
        </result>
      </math>
    </region>
    <region left="621" top="1197" width="105" height="26" color="#000000" fontSize="10">
      <math roundingMode="1">
        <input>
          <e type="operand">5</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">24</e>
        </result>
      </math>
    </region>
    <region left="333" top="1242" width="60" height="32" border="true" color="#000000" bgColor="#ffff80">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Cambria'; font-size: 11pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong>Eqn. 1</strong></span></div></span>]]></writer>
    </region>
    <region left="450" top="1242" width="141" height="43" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">Gamma</e>
        </input>
        <result action="numeric">
          <e type="operand">1.7725</e>
        </result>
      </math>
    </region>
    <region left="621" top="1251" width="96" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">π</e>
          <e type="function" args="1">sqrt</e>
        </input>
        <result action="numeric">
          <e type="operand">1.7725</e>
        </result>
      </math>
    </region>
    <region left="27" top="1296" width="363" height="73" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Eqn for Gamma function CDF</p>
        </description>
        <input>
          <e type="operand">x_val</e>
          <e type="function" args="1">G</e>
          <e type="operand">1</e>
          <e type="operand">β</e>
          <e type="operand">α</e>
          <e type="operator" args="2">^</e>
          <e type="operand">α</e>
          <e type="function" args="1">Gamma</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operand">x</e>
          <e type="operand">α</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">^</e>
          <e type="operand">e</e>
          <e type="operand">x</e>
          <e type="operand">β</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operand">x_val</e>
          <e type="function" args="4">int</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="549" top="1332" width="67" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="6" roundingMode="1">
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">G</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
        </result>
      </math>
    </region>
    <region left="396" top="1341" width="60" height="32" border="true" color="#000000" bgColor="#ffff80">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Cambria'; font-size: 11pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong>Eqn. 2</strong></span></div></span>]]></writer>
    </region>
    <region left="549" top="1368" width="67" height="26" color="#000000" fontSize="10">
      <math decimalPlaces="2">
        <input>
          <e type="operand">0</e>
          <e type="function" args="1">g</e>
        </input>
        <result action="numeric">
          <e type="operand">0</e>
        </result>
      </math>
    </region>
    <region left="27" top="1431" width="161" height="190" color="#000000" bgColor="#d1d1d1" fontSize="10">
      <math exponentialThreshold="10" matrixOptions="0,0,1,10">
        <description active="true" position="Top" lang="eng">
          <p>PDF using Eqn 1</p>
        </description>
        <input>
          <e type="operand">g1</e>
          <e type="operand">X</e>
          <e type="function" args="1">g</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0034</e>
          <e type="operand">0.0015</e>
          <e type="operand">0.0035</e>
          <e type="operand">0.0008</e>
          <e type="operand">0.0011</e>
          <e type="operand">0.0023</e>
          <e type="operand">0.0004</e>
          <e type="operand">0.003</e>
          <e type="operand">0.0026</e>
          <e type="operand">0.003</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
        </result>
      </math>
    </region>
    <region left="405" top="1431" width="161" height="190" color="#000000" bgColor="#d1d1d1" fontSize="10">
      <math matrixOptions="0,0,1,10">
        <description active="true" position="Top" lang="eng">
          <p>CDF using Eqn 2</p>
        </description>
        <input>
          <e type="operand">G1</e>
          <e type="operand">X</e>
          <e type="function" args="1">G</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0923</e>
          <e type="operand">1.8516</e>
          <e type="operand">0.2522</e>
          <e type="operand">2.8884</e>
          <e type="operand">2.3286</e>
          <e type="operand">1.0822</e>
          <e type="operand">4.0407</e>
          <e type="operand">0.0454</e>
          <e type="operand">0.8983</e>
          <e type="operand">0.6513</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
        </result>
      </math>
    </region>
    <region left="585" top="1494" width="120" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="operand">4</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">G</e>
        </input>
        <result action="numeric">
          <e type="operand">2.8884</e>
        </result>
      </math>
    </region>
    <region left="585" top="1521" width="78" height="39" color="#000000">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAEYAAAAfCAYAAABar7u7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQGSURBVGhD7ZhfaBRXGMUXWtNYdKX4pAZEoQQUlVDRhyhi3KhtjVkMKFZIHyquoBJkEcEHkaalVESjJYo2YI0PGhB9KsWCRsHSNo1IDWpUkihKgn+rJSa7szNzPHf+kN2dO5vJ7mbIw5zhl93Nzv2+7565c+feDSGQVIExLgqMcZEvxmg8ZPrtzh0cO38eqvV5IslhjM5D0RSktFTBKAaMxSNdzSR2uhW758/DsrIyvHj71vi/LEYxUcdwCRzGqJqKpJqEqjNMHiT0hEFSHWa0zJHycedtNJeWoHvGTPwZYmpysrISb6zvRTtZzGKgqObF9iqHMZqmQdEVafBcpEiSyXW2z9aC1lYsDYdRbpmRTuO6dXhqnfdOHzJiJfWkJ8ZSp2GM7qMxRkKOMI41MwDVOfg/TrW3Y/nWrfiutBR/SAyxufjVZqtVftJEDR7q9c0YkSihcujz1dZ9cpyE6upwc1IJOiVGZPPZNzEsYZsaUu2BCKknp3Wdf00lWYema9I6bQo2Rswxw6lhJDTOFa5w/lAzb5nbpCS6Afc4mXZIDHDjAemZVYZH08LomzJlVHqnTsXTjyZhHtuduPWvkXtYeWfObdJaLWieeBB4FatzSjyZch22npOj5JPYduxkoZetzvrBXfL7S1GBkFlTeo2yYyxilvx1reMftDQ3Y9vixcYoeZNW+HjTx5Hzl1XHeIhZRtTT04Pa2lpULqvE2shaVEeqHURWRfDF6s+xsiaKXyUF+8UAWVH/NaJ1m1BdtVJaq2BNZA2qVlVh0YJFaGtrs3o6uphlRNevXWfOkGc2Tp+O43zlB9/pIqHwNL511uVGPB63ejq6mCV/9ZKFDQ34kUn/JszuG72k67/XZiHjIGYpXE/I/pu38NMvLQh/8KGjE7nYW1GBw6dacJJzVVNTE47mQHx/jPx88CB2HjqELvkWrChidZkSj2uxjvGCSriQsVqa2sGNYcu5c6goL8dDiRHZNMVixtOtEIk1iqy+dMTj2tctgVEUV76aOpL0Fdl/vxtf7mpA7ezZeCExxOaH9evxzGwGnXF0xhkVdlATG0Oen22AK4Uu8PLdKwmEQdkLv/iVq9i4ZQvqJ092mCJorKlBv3VuKsXOjhXFG0mFG+Os0Z1LRTZGtOP2nlfVVmd/Py53dODTaBQnaMSZLGO+TzNG5zJ/PBF986qiGmNj3l6Zy++riQS6b9zAnMYDiKcZcySyGgPWORNJDmPE5CsmKvt3lUIY0ocYS/wuMzKEH5F9fY9Rf+BbtNOYPXPnYmBw0PxyAslhDAedYY7GuaIQhBf2e11lzFTm/S0e8WcvXMAlTtLe73z/5DAmkKnAGBcFxrgoMMZFgTEuCoxxUWCMiwJjpALeA30L14MkE4mbAAAAAElFTkSuQmCC</raw>
      </picture>
    </region>
    <region left="207" top="1530" width="78" height="39" color="#000000">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAEYAAAAfCAYAAABar7u7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQGSURBVGhD7ZhfaBRXGMUXWtNYdKX4pAZEoQQUlVDRhyhi3KhtjVkMKFZIHyquoBJkEcEHkaalVESjJYo2YI0PGhB9KsWCRsHSNo1IDWpUkihKgn+rJSa7szNzPHf+kN2dO5vJ7mbIw5zhl93Nzv2+7565c+feDSGQVIExLgqMcZEvxmg8ZPrtzh0cO38eqvV5IslhjM5D0RSktFTBKAaMxSNdzSR2uhW758/DsrIyvHj71vi/LEYxUcdwCRzGqJqKpJqEqjNMHiT0hEFSHWa0zJHycedtNJeWoHvGTPwZYmpysrISb6zvRTtZzGKgqObF9iqHMZqmQdEVafBcpEiSyXW2z9aC1lYsDYdRbpmRTuO6dXhqnfdOHzJiJfWkJ8ZSp2GM7qMxRkKOMI41MwDVOfg/TrW3Y/nWrfiutBR/SAyxufjVZqtVftJEDR7q9c0YkSihcujz1dZ9cpyE6upwc1IJOiVGZPPZNzEsYZsaUu2BCKknp3Wdf00lWYema9I6bQo2Rswxw6lhJDTOFa5w/lAzb5nbpCS6Afc4mXZIDHDjAemZVYZH08LomzJlVHqnTsXTjyZhHtuduPWvkXtYeWfObdJaLWieeBB4FatzSjyZch22npOj5JPYduxkoZetzvrBXfL7S1GBkFlTeo2yYyxilvx1reMftDQ3Y9vixcYoeZNW+HjTx5Hzl1XHeIhZRtTT04Pa2lpULqvE2shaVEeqHURWRfDF6s+xsiaKXyUF+8UAWVH/NaJ1m1BdtVJaq2BNZA2qVlVh0YJFaGtrs3o6uphlRNevXWfOkGc2Tp+O43zlB9/pIqHwNL511uVGPB63ejq6mCV/9ZKFDQ34kUn/JszuG72k67/XZiHjIGYpXE/I/pu38NMvLQh/8KGjE7nYW1GBw6dacJJzVVNTE47mQHx/jPx88CB2HjqELvkWrChidZkSj2uxjvGCSriQsVqa2sGNYcu5c6goL8dDiRHZNMVixtOtEIk1iqy+dMTj2tctgVEUV76aOpL0Fdl/vxtf7mpA7ezZeCExxOaH9evxzGwGnXF0xhkVdlATG0Oen22AK4Uu8PLdKwmEQdkLv/iVq9i4ZQvqJ092mCJorKlBv3VuKsXOjhXFG0mFG+Os0Z1LRTZGtOP2nlfVVmd/Py53dODTaBQnaMSZLGO+TzNG5zJ/PBF986qiGmNj3l6Zy++riQS6b9zAnMYDiKcZcySyGgPWORNJDmPE5CsmKvt3lUIY0ocYS/wuMzKEH5F9fY9Rf+BbtNOYPXPnYmBw0PxyAslhDAedYY7GuaIQhBf2e11lzFTm/S0e8WcvXMAlTtLe73z/5DAmkKnAGBcFxrgoMMZFgTEuCoxxUWCMiwJjpALeA30L14MkE4mbAAAAAElFTkSuQmCC</raw>
      </picture>
    </region>
    <region left="270" top="1530" width="120" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="operand">4</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">g</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0008</e>
        </result>
      </math>
    </region>
    <region left="360" top="1575" width="40" height="270" color="#000000">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAACAAAADTCAYAAADgfBFDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGUSURBVHhe7d0hssIwFIXhSiQSiUQikUiWgKxkCThkl4FEIpEsAVnJMpD35dBmprSFaZLCPPGfmctMgSQfCfZOMvtGbjez69XscKhqtzNbr7tVFDYO4HQyy3Oz5dIsc1MOLTfGvSbkfg9ftFnJgM2mf2KhtMX+CM7n6kjaVZaJgOai+73Z5WL2eNQfDst4gMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADEj1R/yU8AvmVH7Ru+Zafd2DKZ1F8OT/aceD5/nTC0iqKeLjxZ0uKzWbU7Ccme+r7Jh5Z+gI4pMm4GF/2hmv0/vvy5q9RTtFp1AR4RGTc6IsK1dy4y8SMVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAfwUoy/rNsKQBFotXhJ632+79NR+SBlATjJqcmoiQSr7NR1GHju4ymk77F/lUowCaUb/R8VgdgVD+5qZ3u5Tn9gfq5T8mfJiFewAAAABJRU5ErkJggg==</raw>
      </picture>
    </region>
    <region left="270" top="1629" width="87" height="33" color="#000000" fontSize="10">
      <math decimalPlaces="2" roundingMode="1">
        <input>
          <e type="operand">X</e>
          <e type="operand">4</e>
          <e type="function" args="2">el</e>
        </input>
        <result action="numeric">
          <e type="operand">387.1</e>
        </result>
      </math>
    </region>
    <region left="18" top="1674" width="199" height="69" color="#000000" bgColor="#e1ffc4" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <p>Substitute g(x) in Eqn 2</p>
        </description>
        <input>
          <e type="operand">x_val</e>
          <e type="function" args="1">Q</e>
          <e type="operand">x</e>
          <e type="function" args="1">g</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operand">x_val</e>
          <e type="function" args="4">int</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="405" top="1674" width="161" height="190" color="#000000" bgColor="#d1d1d1" fontSize="10">
      <math matrixOptions="0,0,1,10">
        <description active="true" position="Top" lang="eng">
          <p>CDF using Eqn 3</p>
        </description>
        <input>
          <e type="operand">G2</e>
          <e type="operand">X</e>
          <e type="function" args="1">Q</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0815</e>
          <e type="operand">1.6353</e>
          <e type="operand">0.2227</e>
          <e type="operand">2.5509</e>
          <e type="operand">2.0565</e>
          <e type="operand">0.9557</e>
          <e type="operand">3.5686</e>
          <e type="operand">0.0401</e>
          <e type="operand">0.7933</e>
          <e type="operand">0.5752</e>
          <e type="operand">10</e>
          <e type="operand">1</e>
          <e type="function" args="12">mat</e>
        </result>
      </math>
    </region>
    <region left="234" top="1719" width="60" height="32" border="true" color="#000000" bgColor="#ffff80">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Cambria'; font-size: 11pt; font-weight: normal; font-style: normal; color: Blue; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong>Eqn. 3</strong></span></div></span>]]></writer>
    </region>
    <region left="585" top="1719" width="120" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
          <e type="operand">4</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">Q</e>
        </input>
        <result action="numeric">
          <e type="operand">2.5509</e>
        </result>
      </math>
    </region>
    <region left="585" top="1746" width="78" height="39" color="#000000">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAEYAAAAfCAYAAABar7u7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQGSURBVGhD7ZhfaBRXGMUXWtNYdKX4pAZEoQQUlVDRhyhi3KhtjVkMKFZIHyquoBJkEcEHkaalVESjJYo2YI0PGhB9KsWCRsHSNo1IDWpUkihKgn+rJSa7szNzPHf+kN2dO5vJ7mbIw5zhl93Nzv2+7565c+feDSGQVIExLgqMcZEvxmg8ZPrtzh0cO38eqvV5IslhjM5D0RSktFTBKAaMxSNdzSR2uhW758/DsrIyvHj71vi/LEYxUcdwCRzGqJqKpJqEqjNMHiT0hEFSHWa0zJHycedtNJeWoHvGTPwZYmpysrISb6zvRTtZzGKgqObF9iqHMZqmQdEVafBcpEiSyXW2z9aC1lYsDYdRbpmRTuO6dXhqnfdOHzJiJfWkJ8ZSp2GM7qMxRkKOMI41MwDVOfg/TrW3Y/nWrfiutBR/SAyxufjVZqtVftJEDR7q9c0YkSihcujz1dZ9cpyE6upwc1IJOiVGZPPZNzEsYZsaUu2BCKknp3Wdf00lWYema9I6bQo2Rswxw6lhJDTOFa5w/lAzb5nbpCS6Afc4mXZIDHDjAemZVYZH08LomzJlVHqnTsXTjyZhHtuduPWvkXtYeWfObdJaLWieeBB4FatzSjyZch22npOj5JPYduxkoZetzvrBXfL7S1GBkFlTeo2yYyxilvx1reMftDQ3Y9vixcYoeZNW+HjTx5Hzl1XHeIhZRtTT04Pa2lpULqvE2shaVEeqHURWRfDF6s+xsiaKXyUF+8UAWVH/NaJ1m1BdtVJaq2BNZA2qVlVh0YJFaGtrs3o6uphlRNevXWfOkGc2Tp+O43zlB9/pIqHwNL511uVGPB63ejq6mCV/9ZKFDQ34kUn/JszuG72k67/XZiHjIGYpXE/I/pu38NMvLQh/8KGjE7nYW1GBw6dacJJzVVNTE47mQHx/jPx88CB2HjqELvkWrChidZkSj2uxjvGCSriQsVqa2sGNYcu5c6goL8dDiRHZNMVixtOtEIk1iqy+dMTj2tctgVEUV76aOpL0Fdl/vxtf7mpA7ezZeCExxOaH9evxzGwGnXF0xhkVdlATG0Oen22AK4Uu8PLdKwmEQdkLv/iVq9i4ZQvqJ092mCJorKlBv3VuKsXOjhXFG0mFG+Os0Z1LRTZGtOP2nlfVVmd/Py53dODTaBQnaMSZLGO+TzNG5zJ/PBF986qiGmNj3l6Zy++riQS6b9zAnMYDiKcZcySyGgPWORNJDmPE5CsmKvt3lUIY0ocYS/wuMzKEH5F9fY9Rf+BbtNOYPXPnYmBw0PxyAslhDAedYY7GuaIQhBf2e11lzFTm/S0e8WcvXMAlTtLe73z/5DAmkKnAGBcFxrgoMMZFgTEuCoxxUWCMiwJjpALeA30L14MkE4mbAAAAAElFTkSuQmCC</raw>
      </picture>
    </region>
    <region left="18" top="1791" width="296" height="32" border="true" color="#000000" bgColor="#ffffce" fontSize="14">
      <math>
        <input>
          <e type="operand">3</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">0.99.7251</e>
        </result>
      </math>
    </region>
    <region left="18" top="1836" width="330" height="92" border="true" color="#000000" bgColor="#ffffce">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-family: 'Bookman Old Style'"><span style="font-size: 12pt">Both <strong><span style="color: Red">Eqns 2 &amp; 3</span></strong><span style="color: Red"> </span>are same, but the results </span></span></div>
<div><span style="font-family: 'Bookman Old Style'"><span style="font-size: 12pt">of Integration (<strong><span style="color: Red">G1 &amp; G2) </span></strong>are <strong><span style="color: Red">slightly different</span></strong>. </span></span></div>
<div><span style="font-family: 'Bookman Old Style'"><span style="font-size: 12pt"><strong><span style="color: Red">Note: </span>Mathcad results are totally different </strong></span></span></div>
<div><span style="font-family: 'Bookman Old Style'"><span style="font-size: 12pt"><strong>from SS, but identical.</strong></span></span></div></span>]]></writer>
    </region>
  </regions>
</worksheet>