﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6824.41156"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <identity>
      <id>03d41593-e078-44d8-88cc-639492224725</id>
      <revision>106</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="False" printAreas="True" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="39" bottom="39" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.6824.41156" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.6824.41156" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.6824.41156" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.6824.41156" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.11.6824.41156" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <region id="0" top="36" color="#000000" bgColor="#ffffff">
    <area collapsed="false">
      <title lang="eng">
        <p>Weibull Distribution</p>
      </title>
    </area>
    <region id="1" left="18" top="72" width="527" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The survival function -- the probability that a unit survives for at least time t:</p>
      </text>
    </region>
    <region id="2" left="54" top="99" width="173" height="66" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">S.W</e>
          <e type="operand">e</e>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operator" args="2">/</e>
          <e type="bracket">(</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>
        </input>
      </math>
    </region>
    <region id="3" left="18" top="180" width="536" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The cumulative failure function -- the probability that a unit fails at a time T&lt;t:</p>
      </text>
    </region>
    <region id="4" left="54" top="216" width="220" height="30" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">F.W</e>
          <e type="operand">1</e>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">S.W</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="5" left="18" top="261" width="344" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The probability density function of failure a time t:</p>
      </text>
    </region>
    <region id="6" left="54" top="297" width="226" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">f.W</e>
          <e type="operand">t</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">F.W</e>
          <e type="operand">t</e>
          <e type="function" args="2">diff</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="7" left="18" top="351" width="752" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Given a population of n units observed for a total time of tt with failures observed at times t the log likelihoodfunction is:</p>
      </text>
    </region>
    <region id="8" left="54" top="396" width="590" height="42" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="operand">n</e>
          <e type="operand">tt</e>
          <e type="operand">t.f</e>
          <e type="function" args="5">ll.W</e>
          <e type="operand">t.f</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">f.W</e>
          <e type="function" args="1">ln</e>
          <e type="function" args="1">vectorize</e>
          <e type="function" args="1">sum</e>
          <e type="bracket">(</e>
          <e type="operand">n</e>
          <e type="operand">t.f</e>
          <e type="function" args="1">rows</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="operand">tt</e>
          <e type="operand">λ</e>
          <e type="operand">β</e>
          <e type="function" args="3">S.W</e>
          <e type="function" args="1">ln</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="9" top="450" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="10" left="54" top="468" width="447" height="36" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">T</e>
        <e type="operand">20</e>
        <e type="operand">30</e>
        <e type="operand">71</e>
        <e type="operand">80</e>
        <e type="operand">116</e>
        <e type="operand">246</e>
        <e type="operand">311</e>
        <e type="operand">379</e>
        <e type="operand">384</e>
        <e type="operand">421</e>
        <e type="operand">458</e>
        <e type="operand">495</e>
        <e type="operand">497</e>
        <e type="operand">499</e>
        <e type="operand">1</e>
        <e type="operand">14</e>
        <e type="function" args="16">mat</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="11" left="9" top="513" width="735" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>The life cycle analysis starts with n=130 units under test for time_test=499 days.Several units fail. What is the probability that the ith unit will fail at time T hours.Use a Weibull probability destiny distribution function. The family of rate distributionfunctions is given by T: Time to failure in days.</p>
    </text>
  </region>
  <region id="12" left="54" top="603" width="235" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="1">max</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">499</e>
      </result>
    </math>
  </region>
  <region id="13" left="315" top="603" width="62" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="3" exponentialThreshold="7">
      <input>
        <e type="operand">n</e>
        <e type="operand">130</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="14" left="63" top="639" width="149" height="28" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">k</e>
        <e type="operand">1</e>
        <e type="operand">T</e>
        <e type="function" args="1">length</e>
        <e type="function" args="2">range</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="15" left="234" top="639" width="61" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Y</e>
        <e type="operand">k</e>
        <e type="function" args="2">el</e>
        <e type="operand">k</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="16" top="684" color="#000000" bgColor="#ffffff">
    <area collapsed="true">
      <title lang="eng">
        <p>LM Algorithm</p>
      </title>
    </area>
    <region id="17" left="18" top="711" width="247" height="94" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="false" position="Top" lang="spa">
          <p>Diagonal matrix for Numerical Procedures</p>
        </description>
        <input>
          <e type="operand">A\032E\</e>
          <e type="operand">N\032E\</e>
          <e type="function" args="2">nDiag</e>
          <e type="operand">D\0324\</e>
          <e type="operand">N\032E\</e>
          <e type="operand">N\032E\</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k\0324\</e>
          <e type="operand">1</e>
          <e type="operand">N\032E\</e>
          <e type="function" args="2">range</e>
          <e type="operand">D\0324\</e>
          <e type="operand">k\0324\</e>
          <e type="operand">k\0324\</e>
          <e type="function" args="3">el</e>
          <e type="operand">A\032E\</e>
          <e type="operand">k\0324\</e>
          <e type="operand">k\0324\</e>
          <e type="function" args="3">el</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">D\0324\</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="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="18" left="351" top="711" width="237" height="31" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <description active="false" position="Top" lang="spa">
          <p>Diagonal matrix for Numerical Procedures</p>
        </description>
        <input>
          <e type="operand">A\032E\</e>
          <e type="function" args="1">nDiag</e>
          <e type="operand">A\032E\</e>
          <e type="operand">A\032E\</e>
          <e type="function" args="1">rows</e>
          <e type="function" args="2">nDiag</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="19" left="18" top="819" width="777" height="981" color="#000000" bgColor="#ffffff" fontSize="10">
      <math optimize="2">
        <description active="true" position="Top" lang="eng">
          <p>Levenberg–Marquardt</p>
        </description>
        <input>
          <e type="operand">1</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">1</e>
          <e type="function" args="1">b\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="operand">νo\032E\</e>
          <e type="operand">εx\032E\</e>
          <e type="operand">εy\032E\</e>
          <e type="operand">M\032E\</e>
          <e type="function" args="7">nLM</e>
          <e type="operand">x\0324\</e>
          <e type="operand">a\032E\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">y\0324\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="1">f\032E\</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">R\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="1">length</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">C\0324\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="1">length</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="function" args="6">mat</e>
          <e type="operand">εx\0324\</e>
          <e type="operand">εx\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">UnitsOf</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">εo\0324\</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="1">identity</e>
          <e type="operand">εx\0324\</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">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">εy\0324\</e>
          <e type="operand">εy\032E\</e>
          <e type="operand">y\0324\</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">UnitsOf</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="operand">y\0324\</e>
          <e type="function" args="1">Co\0324\</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operand">y\0324\</e>
          <e type="operand">k\0324\</e>
          <e type="function" args="2">el</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand">k\0324\</e>
          <e type="operand">1</e>
          <e type="operand">R\0324\</e>
          <e type="function" args="4">sum</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="operator" args="2">:</e>
          <e type="operand">x\0324\</e>
          <e type="operand">Y\0324\</e>
          <e type="function" args="2">Grd\0324\</e>
          <e type="operand">G\0324\</e>
          <e type="operand">C\0324\</e>
          <e type="operand">1</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand">c\0324\</e>
          <e type="operand">1</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="2">range</e>
          <e type="operand">G\0324\</e>
          <e type="operand">c\0324\</e>
          <e type="function" args="2">el</e>
          <e type="operand">x\0324\</e>
          <e type="operand">εo\0324\</e>
          <e type="operand">c\0324\</e>
          <e type="function" args="2">col</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">f\032E\</e>
          <e type="function" args="1">Co\0324\</e>
          <e type="operand">Y\0324\</e>
          <e type="operator" args="2">-</e>
          <e type="operand">εx\0324\</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">G\0324\</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="function" args="1">sqrt</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="operator" args="2">:</e>
          <e type="operand">x\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="2">Jac</e>
          <e type="operand">J\0324\</e>
          <e type="operand">R\0324\</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand">r\0324\</e>
          <e type="operand">1</e>
          <e type="operand">R\0324\</e>
          <e type="function" args="2">range</e>
          <e type="operand">c\0324\</e>
          <e type="operand">1</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="2">range</e>
          <e type="operand">J\0324\</e>
          <e type="operand">r\0324\</e>
          <e type="operand">c\0324\</e>
          <e type="function" args="3">el</e>
          <e type="operand">x\0324\</e>
          <e type="operand">εo\0324\</e>
          <e type="operand">c\0324\</e>
          <e type="function" args="2">col</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">r\0324\</e>
          <e type="function" args="2">el</e>
          <e type="operand">y\0324\</e>
          <e type="operand">r\0324\</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="operand">εx\0324\</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="function" args="3">for</e>
          <e type="operand">J\0324\</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="operator" args="2">:</e>
          <e type="operand">y\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="function" args="1">f\032E\</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Y\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="1">Co\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">J\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="2">Jac</e>
          <e type="operator" args="2">:</e>
          <e type="operand">H\0324\</e>
          <e type="operand">J\0324\</e>
          <e type="function" args="1">transpose</e>
          <e type="operand">J\0324\</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">4</e>
          <e type="function" args="6">mat</e>
          <e type="operand">λo\0324\</e>
          <e type="operand">H\0324\</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="2">nDiag</e>
          <e type="function" args="1">max</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">xm\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Gr\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operand">Y\0324\</e>
          <e type="function" args="2">Grd\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="function" args="5">mat</e>
          <e type="operand">k\0324\</e>
          <e type="operand">1</e>
          <e type="operand">M\032E\</e>
          <e type="function" args="2">range</e>
          <e type="operand">d\0324\</e>
          <e type="operand">H\0324\</e>
          <e type="operand">λo\0324\</e>
          <e type="operand">H\0324\</e>
          <e type="operand">C\0324\</e>
          <e type="function" args="2">nDiag</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="bracket">(</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operand">J\0324\</e>
          <e type="function" args="1">transpose</e>
          <e type="operand">y\0324\</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">k\0324\</e>
          <e type="operand">1</e>
          <e type="operand">M\032E\</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="operand">break</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="function" args="2">try</e>
          <e type="operand">B\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operand">d\0324\</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">b\032E\</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">xo\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operand">d\0324\</e>
          <e type="operand">B\0324\</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">vectorize</e>
          <e type="operator" args="2">-</e>
          <e type="operator" args="2">:</e>
          <e type="operand">yo\0324\</e>
          <e type="operand">xo\0324\</e>
          <e type="function" args="1">f\032E\</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Yo\0324\</e>
          <e type="operand">yo\0324\</e>
          <e type="function" args="1">Co\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">Yo\0324\</e>
          <e type="operand">Y\0324\</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">x\0324\</e>
          <e type="operand">xo\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">y\0324\</e>
          <e type="operand">yo\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Y\0324\</e>
          <e type="operand">Yo\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">λo\0324\</e>
          <e type="operand">λo\0324\</e>
          <e type="operand">νo\032E\</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">4</e>
          <e type="function" args="6">mat</e>
          <e type="operand">Go</e>
          <e type="operand">x\0324\</e>
          <e type="operand">Y\0324\</e>
          <e type="function" args="2">Grd\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="bracket">(</e>
          <e type="operand">Gr\0324\</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">xm\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Gr\0324\</e>
          <e type="operand">Go</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operand">0</e>
          <e type="function" args="3">if</e>
          <e type="operand">Go</e>
          <e type="operand">εy\0324\</e>
          <e type="operator" args="2">&gt;</e>
          <e type="operand">y\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="function" args="1">f\032E\</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">Y\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="1">Co\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">J\0324\</e>
          <e type="operand">x\0324\</e>
          <e type="operand">y\0324\</e>
          <e type="function" args="2">Jac</e>
          <e type="operator" args="2">:</e>
          <e type="operand">H\0324\</e>
          <e type="operand">J\0324\</e>
          <e type="function" args="1">transpose</e>
          <e type="operand">J\0324\</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">4</e>
          <e type="function" args="6">mat</e>
          <e type="operand">break</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>
          <e type="operand">λo\0324\</e>
          <e type="operand">λo\0324\</e>
          <e type="operand">νo\032E\</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</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="function" args="3">for</e>
          <e type="operand">k\0324\</e>
          <e type="operand">M\032E\</e>
          <e type="operator" args="2">≤</e>
          <e type="operand">x\0324\</e>
          <e type="function" args="1">eval</e>
          <e type="operand">xm\0324\</e>
          <e type="function" args="1">eval</e>
          <e type="function" args="3">if</e>
          <e type="operand">8</e>
          <e type="operand">1</e>
          <e type="function" args="10">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="20" left="54" top="1827" width="368" height="76" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">1</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="2">nLM</e>
          <e type="operand">B\0324\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="1">length</e>
          <e type="function" args="1">identity</e>
          <e type="function" args="1">nDiag</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x\032E\</e>
          <e type="function" args="1">b\032E\#</e>
          <e type="operand">B\0324\</e>
          <e type="operator" args="2">:</e>
          <e type="operand">x\032E\#</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">x\032E\#</e>
          <e type="function" args="1">b\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="3">nLM</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" left="54" top="1908" width="497" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand">1</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">1</e>
          <e type="function" args="1">b\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="function" args="3">nLM</e>
          <e type="operand">x\032E\#</e>
          <e type="function" args="1">f\032E\</e>
          <e type="operand">x\032E\#</e>
          <e type="function" args="1">b\032E\</e>
          <e type="operand">a\032E\</e>
          <e type="operand" style="unit">νo</e>
          <e type="operand" style="unit">εx</e>
          <e type="operand" style="unit">εy</e>
          <e type="operand" style="unit">MaxIters</e>
          <e type="function" args="7">nLM</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="22" left="54" top="1953" width="116" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">MaxIters</e>
          <e type="operand">300</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="23" left="225" top="1953" width="82" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">εx</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>
        </input>
      </math>
    </region>
    <region id="24" left="342" top="1953" width="82" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">εy</e>
          <e type="operand">10</e>
          <e type="operand">3</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="25" left="477" top="1953" width="52" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">νo</e>
          <e type="operand">2</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region id="26" top="1998" color="#000000" bgColor="#ffffff">
      <area terminator="true" />
    </region>
  </region>
  <region id="27" left="18" top="2034" width="757" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>A maximum likelihood estimate of the parameters, as a function of the data and guess valuesfor the parameters, is then</p>
    </text>
  </region>
  <region id="28" left="54" top="2079" width="478" height="88" color="#000000" bgColor="#ffff80" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">λ</e>
        <e type="operand">β</e>
        <e type="operand">n</e>
        <e type="operand">tt</e>
        <e type="operand">t.f</e>
        <e type="operand">1</e>
        <e type="function" args="1">b</e>
        <e type="function" args="6">ml.W</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operand">n</e>
        <e type="operand">tt</e>
        <e type="operand">t.f</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" args="3">mat</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" args="3">line</e>
        <e type="operator" args="2">:</e>
        <e type="operand">x#</e>
        <e type="function" args="1">f</e>
        <e type="operand">x#</e>
        <e type="function" args="1">b</e>
        <e type="operand">λ</e>
        <e type="operand">β</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
        <e type="function" args="3">nLM</e>
        <e type="function" args="1">eval</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="29" left="18" top="2178" width="735" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>We need guess values for the parameters.  Here is a very simplistic estimate, taking b asjust 1:</p>
    </text>
  </region>
  <region id="30" left="54" top="2223" width="312" height="54" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">n</e>
        <e type="operand">tt</e>
        <e type="operand">t.f</e>
        <e type="function" args="3">guess.W</e>
        <e type="operand">tt</e>
        <e type="operand">n</e>
        <e type="operand">t.f</e>
        <e type="function" args="1">rows</e>
        <e type="operator" args="2">/</e>
        <e type="function" args="1">ln</e>
        <e type="operator" args="2">*</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="31" left="396" top="2223" width="360" height="35" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="3" exponentialThreshold="7">
      <input>
        <e type="operand">λ.g</e>
        <e type="operand">β.g</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="3">guess.W</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">1112.01</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="32" left="396" top="2259" width="312" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">λ.g</e>
        <e type="operand">β.g</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
      </input>
      <result action="numeric">
        <e type="operand">153.8518</e>
        <e type="operator" args="1">-</e>
      </result>
    </math>
  </region>
  <region id="33" left="36" top="2322" width="43" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
    <math>
      <input>
        <e type="operand">β</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&lt;</e>
      </input>
    </math>
  </region>
  <region id="34" left="99" top="2322" width="328" height="101" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">b</e>
        <e type="operand">0</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">&lt;</e>
        <e type="operand">0</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">&lt;</e>
        <e type="bracket">(</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&lt;</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">&amp;</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">λ.1</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="operand">λ.g</e>
        <e type="operand">0.5</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="operand">x#</e>
        <e type="function" args="1">b</e>
        <e type="function" args="6">ml.W</e>
        <e type="operator" args="2">:</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </math>
  </region>
  <region id="35" left="450" top="2322" width="296" height="214" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="1.37795798527851" scale_y="0.0602012730617466" scale_z="0.194655366349521" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-128" transpose_y="-87" transpose_z="0">
      <input>
        <e type="operand">n</e>
        <e type="operand">x</e>
        <e type="operand">λ.1</e>
        <e type="operand">β.1</e>
        <e type="function" args="3">F.W</e>
        <e type="operator" args="2">*</e>
        <e type="operand">T</e>
        <e type="operand">Y</e>
        <e type="operand" style="string">o</e>
        <e type="operand">5</e>
        <e type="operand" style="string">red</e>
        <e type="function" args="5">augment</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="36" left="54" top="2430" width="232" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">λ.1</e>
        <e type="operand">β.1</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </input>
      <result action="numeric">
        <e type="operand">5608.5324</e>
        <e type="operand">0.9288</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="37" left="54" top="2466" width="153" height="121" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="1.63305146184357" scale_y="0.00964102439570502" scale_z="0.0146134192075593" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-255" transpose_y="1668" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="operand">β.1</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">λ.1</e>
        <e type="operand">β.1</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="38" left="216" top="2466" width="151" height="120" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="4.88953816695984" scale_y="74.8696710544196" scale_z="34.043447353986" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-523" transpose_y="4906" transpose_z="0">
      <input>
        <e type="operand">λ.1</e>
        <e type="operand">x</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">λ.1</e>
        <e type="operand">β.1</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="39" left="36" top="2628" width="43" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
    <math>
      <input>
        <e type="operand">β</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
      </input>
    </math>
  </region>
  <region id="40" left="99" top="2628" width="312" height="99" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">b</e>
        <e type="operand">0</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">&lt;</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">&lt;</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
        <e type="function" args="1">transpose</e>
        <e type="operator" args="2">:</e>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">mat</e>
        <e type="operand">λ.g</e>
        <e type="operand">2</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="operand">x#</e>
        <e type="function" args="1">b</e>
        <e type="function" args="6">ml.W</e>
        <e type="operator" args="2">:</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </math>
  </region>
  <region id="41" left="450" top="2628" width="296" height="214" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="1.37795798527851" scale_y="0.0602012730617466" scale_z="0.194655366349521" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-128" transpose_y="-87" transpose_z="0">
      <input>
        <e type="operand">n</e>
        <e type="operand">x</e>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="function" args="3">F.W</e>
        <e type="operator" args="2">*</e>
        <e type="operand">T</e>
        <e type="operand">Y</e>
        <e type="operand" style="string">o</e>
        <e type="operand">5</e>
        <e type="operand" style="string">red</e>
        <e type="function" args="5">augment</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="42" left="54" top="2736" width="232" height="33" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </input>
      <result action="numeric">
        <e type="operand">3450.4506</e>
        <e type="operand">1.1179</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="43" left="54" top="2772" width="153" height="121" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="2.20549580380397" scale_y="0.00964102439570502" scale_z="0.0197359578032622" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-210" transpose_y="2237" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="operand">β.2</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="44" left="216" top="2772" width="151" height="120" color="#000000" bgColor="#ffffff" fontSize="10" showInputData="False">
    <plot type="2d" render="lines" scale_x="4.93892744137358" scale_y="74.8696710544196" scale_z="34.3873205595818" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-622" transpose_y="4948" transpose_z="0">
      <input>
        <e type="operand">λ.2</e>
        <e type="operand">x</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="operand">n</e>
        <e type="operand">time.test</e>
        <e type="operand">T</e>
        <e type="function" args="5">ll.W</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="45" left="54" top="2943" width="245" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="spa">
      <p>f.W refuses to plot if isn't epxlicity defined.</p>
    </text>
  </region>
  <region id="46" left="351" top="2943" width="176" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">f.W</e>
        <e type="operand">t</e>
        <e type="operand">λ</e>
        <e type="operand">β</e>
        <e type="function" args="3">f.W</e>
        <e type="function" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="47" left="621" top="2943" width="129" height="31" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">t</e>
        <e type="operand">λ</e>
        <e type="operand">β</e>
        <e type="function" args="3">f.W</e>
        <e type="operand">f.W</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="48" left="54" top="3015" width="43" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
    <math>
      <input>
        <e type="operand">β</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&lt;</e>
      </input>
    </math>
  </region>
  <region id="49" left="405" top="3015" width="43" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
    <math>
      <input>
        <e type="operand">β</e>
        <e type="operand">1</e>
        <e type="operator" args="2">&gt;</e>
      </input>
    </math>
  </region>
  <region id="50" left="54" top="3042" width="296" height="214" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="89878.618775053" scale_y="0.00356391960416211" scale_z="7.70875618869687" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-126" transpose_y="-88" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="operand">λ.1</e>
        <e type="operand">β.1</e>
        <e type="function" args="3">f.W</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" args="3">sys</e>
      </input>
    </plot>
  </region>
  <region id="51" left="405" top="3042" width="296" height="214" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="91703.5187991561" scale_y="0.0035478430102818" scale_z="3.93796643174767" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-127" transpose_y="-91" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="operand">λ.2</e>
        <e type="operand">β.2</e>
        <e type="function" args="3">f.W</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" args="3">sys</e>
      </input>
    </plot>
  </region>
  <region id="52" left="18" top="3330" width="60" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Alvaro</e>
      </input>
    </math>
  </region>
</regions>