﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.97.5346.24640"?>
<regions>
  <settings>
    <identity>
      <id>510720ce-67f1-4e23-bae9-a668078e8571</id>
      <revision>9</revision>
    </identity>
    <calculation>
      <precision>6</precision>
      <exponentialThreshold>9</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" 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>
    <dependences>
      <assembly name="SMath Studio Desktop" version="0.97.5346.24640" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Text Region" version="1.10.5346.31409" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Math Region" version="0.97.5346.24640" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Special Functions" version="1.11.5346.31403" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Plot Region" version="1.9.5346.32570" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependences>
  </settings>
  <region id="0" left="18" top="27" width="448" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Inversing a function in discrete mode </p>
    </text>
  </region>
  <region id="1" left="18" top="63" width="175" height="45" color="#000000" bgColor="#ffff80" fontSize="10">
    <math decimalPlaces="4">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">π</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">/</e>
        <e type="operand">2</e>
        <e type="operand">π</e>
        <e type="operator" args="2">*</e>
        <e type="operand">x</e>
        <e type="operator" args="2">/</e>
        <e type="function" preserve="true" args="1">tanh</e>
        <e type="operator" args="2">*</e>
        <e type="function" preserve="true" args="1">sqrt</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="2" left="513" top="90" width="96" height="26" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math decimalPlaces="4">
      <input>
        <e type="operand">t0</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="1">time</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="3" left="18" top="126" width="614" height="280" color="#000000" bgColor="#ffffe1" fontSize="10">
    <text lang="eng">
      <p>In Mathematics, an InverseFunction is the solution of this function. f(x) is the model of difficulty, documented in Mathematica 4.0. _____________________________Note: the function starts existing around 'x = 0.02, f(0.02) = 0.0564'our choice to solve is wise , down to lower possible limit. The upper limit 0.99 is practical. In fact, at  1, the solution is infinite.From educated practice, we know in advance that the upper limit ofinversion is 1. By looking at the plot of the function, its value 1± ?is around x~25. Plug this value 25 as the upper limit of the bracketedsolve block ... success !______________________________Inversing a data set is not possible in Smath 5346.  Under the hood of'solve' there is a derivative component that does NOT works from  linterp,ainterp, cinterp. The only alternative is via some sort of model tofake the data set. Piece wise is a valid approach if no model will fit.</p>
    </text>
  </region>
  <region id="4" left="18" top="432" width="545" height="171" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2" fractionType="auto">
      <input>
        <e type="operand">f</e>
        <e type="operand">L</e>
        <e type="operand">H</e>
        <e type="operand">N</e>
        <e type="function" args="4">Inverse</e>
        <e type="operand">dx</e>
        <e type="operand">H</e>
        <e type="operand">L</e>
        <e type="operator" args="2">-</e>
        <e type="operand">N</e>
        <e type="operator" args="2">/</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" preserve="true" args="2">range</e>
        <e type="operand">ω</e>
        <e type="operand">i</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">L</e>
        <e type="operand">dx</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="operand">dx</e>
        <e type="operand">i</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
        <e type="operand" style="string" />
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">ω</e>
        <e type="function" preserve="true" args="1">rows</e>
        <e type="function" preserve="true" args="2">range</e>
        <e type="operand">sol</e>
        <e type="operand">j</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">ω</e>
        <e type="operand">j</e>
        <e type="function" preserve="true" args="2">el</e>
        <e type="operator" args="2">-</e>
        <e type="operand">0</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">x</e>
        <e type="operand">0.02</e>
        <e type="operand">25</e>
        <e type="function" preserve="true" args="4">solve</e>
        <e type="function" preserve="true" args="1">eval</e>
        <e type="operator" args="2">:</e>
        <e type="function" preserve="true" args="3">for</e>
        <e type="operand">ω</e>
        <e type="operand">sol</e>
        <e type="function" preserve="true" args="2">augment</e>
        <e type="operand">5</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="7">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="5" left="585" top="441" width="139" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">25</e>
        <e type="function" args="1">f</e>
      </input>
      <result action="numeric">
        <e type="operand">0.989679</e>
      </result>
    </math>
  </region>
  <region id="6" left="18" top="612" width="277" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math fractionType="auto">
      <input>
        <e type="operand">Sol</e>
        <e type="operand">f</e>
        <e type="operand">0.06</e>
        <e type="operand">0.995</e>
        <e type="operand">100</e>
        <e type="function" args="4">Inverse</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="7" left="414" top="612" width="166" height="26" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math decimalPlaces="0">
      <input>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="1">time</e>
        <e type="operand">t0</e>
        <e type="operator" args="2">-</e>
      </input>
      <result action="numeric">
        <e type="operand">26</e>
        <e type="operand" style="unit">sec</e>
        <e type="operator" args="2">*</e>
      </result>
    </math>
  </region>
  <region id="8" left="18" top="648" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.672454884898439" scale_y="17.4494022688864" scale_z="11.7339357942706" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-67" transpose_y="-47" transpose_z="0">
      <input>
        <e type="operand">50</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operand">Sol</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="9" left="279" top="648" width="368" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="7.93695821298536" scale_y="0.523225558264143" scale_z="4.15281939190847" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-1" transpose_y="-52" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">0.02</e>
        <e type="operand">0.0564</e>
        <e type="operand" style="string">+</e>
        <e type="operand">12</e>
        <e type="operand" style="string">red</e>
        <e type="operand">1</e>
        <e type="operand">5</e>
        <e type="function" preserve="true" args="7">mat</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
</regions>