﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="1.1.8763.0"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>6bf51e0a-6b43-476b-bfeb-38a3b9e363a8</id>
      <revision>132</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" viewMode="1" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <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="1.1.8763.0" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.11.8763.0" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Custom Functions" version="1.1.8726.29023" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="SpecialFunctions" version="1.12.8763.0" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.8763.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="X-Y Plot Region (JXCharts)" version="0.2.8747.29954" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="9" top="27" width="405" height="32" color="#000000" bgColor="#c0c0c0" fontSize="16" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial; font-size: 16px; background-color: #c0c0c0;">Optimal distribution of interpolation points</p>
        </content>
      </text>
    </region>
    <region left="9" top="99" width="220" height="26" color="#000000" bgColor="#c0c0c0" fontSize="12" isBreakable="false">
      <text lang="ger" width="220" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial; font-size: 12px; background-color: #c0c0c0;">Thermodynamic Formulae</p>
        </content>
      </text>
    </region>
    <region left="27" top="144" width="359" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">saturation steam pressure for humid air above water or ice</p>
        </content>
      </text>
    </region>
    <region left="531" top="144" width="96" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand" style="unit">hPa</e>
          <e type="operand">100</e>
          <e type="operand" style="unit">Pa</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="261" top="171" width="202" height="77" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">T</e>
          <e type="operand">k</e>
          <e type="function" args="2">E.symb</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">e</e>
          <e type="operand">k</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">T</e>
          <e type="operator" args="2">*</e>
          <e type="operand">k</e>
          <e type="operand">3</e>
          <e type="function" args="2">el</e>
          <e type="operand">T</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="261" top="270" width="123" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">k.w</e>
          <e type="operand">614.0726</e>
          <e type="operand">17.62</e>
          <e type="operand">243.12</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="414" top="270" width="123" height="63" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">k.i</e>
          <e type="operand">614.0726</e>
          <e type="operand">22.46</e>
          <e type="operand">272.62</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="288" width="179" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p>coefficients or water and ice</p>
        </content>
      </text>
    </region>
    <region left="252" top="351" width="389" height="78" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ϑ</e>
          <e type="function" args="1">E</e>
          <e type="operand">ϑ</e>
          <e type="operand">k.w</e>
          <e type="function" args="2">E.symb</e>
          <e type="operand" style="unit">Pa</e>
          <e type="operator" args="2">*</e>
          <e type="operand">ϑ</e>
          <e type="operand">0.01</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operand">ϑ</e>
          <e type="operand">60</e>
          <e type="operator" args="2">≤</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&amp;</e>
          <e type="operand">ϑ</e>
          <e type="operand">k.i</e>
          <e type="function" args="2">E.symb</e>
          <e type="operand" style="unit">Pa</e>
          <e type="operator" args="2">*</e>
          <e type="operand">ϑ</e>
          <e type="operand">40</e>
          <e type="operator" args="1">-</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">≥</e>
          <e type="bracket">(</e>
          <e type="operand">ϑ</e>
          <e type="operand">0.01</e>
          <e type="operator" args="2">&lt;</e>
          <e type="bracket">(</e>
          <e type="operator" args="2">&amp;</e>
          <e type="operand" style="string">not defined</e>
          <e type="function" args="5">cases</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="378" width="113" height="38" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">put together<br />for water and ice</p>
        </content>
      </text>
    </region>
    <region left="27" top="468" width="243" height="38" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">Formula to be interpolated:<br />Saturation steam pressure in humid air</p>
        </content>
      </text>
    </region>
    <region left="387" top="468" width="45" height="26" color="#000000" bgColor="#ffff80" fontSize="10">
      <math optimize="2" decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">ϑ</e>
          <e type="function" args="1">E</e>
        </input>
      </math>
    </region>
    <region left="27" top="522" width="44" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">Test </p>
        </content>
      </text>
    </region>
    <region left="387" top="522" width="119" height="26" color="#000000" fontSize="10">
      <math significantDigitsMode="true" exponentialThreshold="6" trailingZeros="true">
        <input>
          <e type="operand">20</e>
          <e type="function" args="1">E</e>
        </input>
        <contract>
          <e type="operand" style="unit">Pa</e>
        </contract>
        <result action="numeric">
          <e type="operand">2344</e>
        </result>
      </math>
    </region>
    <region left="27" top="576" width="159" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">Temperature range from</p>
        </content>
      </text>
    </region>
    <region left="207" top="576" width="86" height="30" color="#000000" bgColor="#80ff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">T.min</e>
          <e type="operand">25</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="288" top="576" width="26" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">°C</e>
        </input>
      </math>
    </region>
    <region left="333" top="576" width="29" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">to </p>
        </content>
      </text>
    </region>
    <region left="378" top="576" width="73" height="30" color="#000000" bgColor="#80ff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">T.max</e>
          <e type="operand">60</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="450" top="576" width="26" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="unit">°C</e>
        </input>
      </math>
    </region>
    <region left="27" top="612" width="113" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">number of points</p>
        </content>
      </text>
    </region>
    <region left="207" top="612" width="54" height="24" color="#000000" bgColor="#80ff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">n</e>
          <e type="operand">20</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="315" top="612" width="290" height="23" color="#000000" fontSize="10">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p>set to 20 for better illustration later needed 120</p>
        </content>
      </text>
    </region>
    <region left="27" top="684" width="376" height="23" color="#000000" fontSize="10" isBreakable="false">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p style="font-family: Arial;">wanted: list of temperature points that produce the best fit for </p>
        </content>
      </text>
    </region>
    <region left="396" top="684" width="20" height="24" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">E</e>
        </input>
      </math>
    </region>
    <region left="27" top="738" width="168" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Parameters of the method</p>
        </content>
      </text>
    </region>
    <region left="153" top="774" width="233" height="58" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">T</e>
          <e type="operand">k</e>
          <e type="function" args="2">κ.symb</e>
          <e type="operand">T</e>
          <e type="operand">k</e>
          <e type="function" args="2">E.symb</e>
          <e type="operand">T</e>
          <e type="operand">2</e>
          <e type="function" args="3">diff</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="792" width="76" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Curvature </p>
        </content>
      </text>
    </region>
    <region left="153" top="864" width="263" height="59" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">κ</e>
          <e type="operand">x</e>
          <e type="operand">k.i</e>
          <e type="function" args="2">κ.symb</e>
          <e type="operand">x</e>
          <e type="operand">0.01</e>
          <e type="operator" args="2">&lt;</e>
          <e type="operand">x</e>
          <e type="operand">k.w</e>
          <e type="function" args="2">κ.symb</e>
          <e type="function" args="3">cases</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="954" width="146" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Function to interpolate</p>
        </content>
      </text>
    </region>
    <region left="405" top="954" width="105" height="30" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operand">x</e>
          <e type="function" args="1">E.l</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="990" width="190" height="23" color="#000000" fontSize="10">
      <text lang="ger" fontFamily="Arial" fontSize="10">
        <content>
          <p>todo: calculate initial step size</p>
        </content>
      </text>
    </region>
    <region left="243" top="990" width="74" height="23" color="#000000" fontSize="10">
      <text lang="eng" width="24" fontFamily="Arial" fontSize="10">
        <content>
          <p>Initial step</p>
        </content>
      </text>
    </region>
    <region left="405" top="990" width="60" height="30" color="#000000" bgColor="#ffff80" fontSize="10">
      <math optimize="2" decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">h.0</e>
          <e type="operand">14</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="1044" width="367" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Sampling point of the reference curvature in the first interval</p>
        </content>
      </text>
    </region>
    <region left="405" top="1044" width="70" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">f</e>
          <e type="operand">0.15</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="1080" width="229" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Exponent in the step scaling formula</p>
        </content>
      </text>
    </region>
    <region left="405" top="1080" width="70" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">p</e>
          <e type="operand">0.45</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="27" top="1116" width="100" height="23" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Arial" fontSize="10">
        <content>
          <p>Centering shift</p>
        </content>
      </text>
    </region>
    <region left="405" top="1116" width="74" height="24" color="#000000" bgColor="#ffff80" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">s</e>
          <e type="operand">0.6</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="1170" width="78" height="33" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">X</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">T.min</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="126" top="1170" width="102" height="33" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">X</e>
          <e type="operand">2</e>
          <e type="function" args="2">el</e>
          <e type="operand">X</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">h.0</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="1215" width="198" height="35" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">κ.0</e>
          <e type="operand">X</e>
          <e type="operand">1</e>
          <e type="function" args="2">el</e>
          <e type="operand">f</e>
          <e type="operand">h.0</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">κ</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.693</e>
        </result>
      </math>
    </region>
    <region left="414" top="1215" width="116" height="31" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">1</e>
          <e type="function" args="1">κ</e>
          <e type="operand">h.0</e>
          <e type="operator" args="2">*</e>
        </input>
        <result action="numeric">
          <e type="operand">42.3</e>
        </result>
      </math>
    </region>
    <region left="36" top="1278" width="229" height="89" color="#000000" fontSize="10">
      <math optimize="2" decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">j</e>
          <e type="operand">2</e>
          <e type="operand">n</e>
          <e type="operand">1</e>
          <e type="operator" args="2">-</e>
          <e type="bracket">(</e>
          <e type="function" args="2">range</e>
          <e type="operand">X</e>
          <e type="operand">j</e>
          <e type="operand">1</e>
          <e type="operator" args="2">+</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="operand">h.0</e>
          <e type="operand">κ.0</e>
          <e type="operand">X</e>
          <e type="operand">j</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">κ</e>
          <e type="operator" args="2">/</e>
          <e type="bracket">(</e>
          <e type="operand">p</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
        </input>
      </math>
    </region>
    <region left="414" top="1278" width="81" height="33" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">X</e>
          <e type="operand">n</e>
          <e type="function" args="2">el</e>
        </input>
        <result action="numeric">
          <e type="operand">62.8</e>
        </result>
      </math>
    </region>
    <region left="414" top="1305" width="161" height="38" color="#000000" fontSize="10">
      <text lang="eng" width="159" fontFamily="Arial" fontSize="10">
        <content>
          <p>Adjust initial step such that the range is covered</p>
        </content>
      </text>
    </region>
    <region left="36" top="1359" width="121" height="34" color="#000000" fontSize="10">
      <math decimalPlaces="3" significantDigitsMode="true">
        <input>
          <e type="operand">F</e>
          <e type="operand">X</e>
          <e type="function" args="1">f</e>
          <e type="function" args="1">vectorize</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="1395" width="596" height="208" color="#000000" bgColor="#ffffff" fontSize="10">
      <xyplot width="586" height="200" points="1000" name="XYPlot">
        <chartstyle backcolor="White" bordercolor="Black" />
        <propertiessource index="1" sourcetype="PropertyGrid" />
        <grid gridcolor="LightGray" gridpattern="Dash" gridthickness="1" isxgrid="true" isygrid="true" isy2grid="false" />
        <xaxes xmin="-0.01472467" xmax="110.2732" xtick="20" visible="True" decimalplaces="3" numberformat="General" />
        <yaxes ymin="-1.367126" ymax="1.265237" ytick="1" visible="True" decimalplaces="3" numberformat="General" />
        <y2axes isy2axis="false" y2min="0" y2max="50" y2tick="5" visible="True" decimalplaces="3" numberformat="General" />
        <title2d title="" titlefont="Arial, 10pt" titlefontcolor="Black" />
        <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Arial, 8pt" tickfontcolor="Black" xlabel="x" ylabel="y" y2label="y2" />
        <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="NorthEast" textcolor="Black" />
        <traces>
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" lineantialias="true" linecolor="Blue" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
          <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Labels" lineantialias="true" linecolor="Red" linethickness="1" linepattern="Solid" symbolantialias="true" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        </traces>
        <input>
          <e type="operand">X</e>
          <e type="operand">F</e>
          <e type="operand">s</e>
          <e type="operator" args="2">+</e>
          <e type="operand">x</e>
          <e type="function" args="3">linterp</e>
          <e type="operand">x</e>
          <e type="function" args="1">f</e>
          <e type="operator" args="2">-</e>
          <e type="operand">X</e>
          <e type="operand">0</e>
          <e type="operand" style="string">+</e>
          <e type="function" args="3">augment</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">sys</e>
        </input>
      </xyplot>
    </region>
    <region left="54" top="1683" width="112" height="371" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">X</e>
        </input>
        <result action="numeric">
          <e type="operand">25</e>
          <e type="operator" args="1">-</e>
          <e type="operand">11</e>
          <e type="operator" args="1">-</e>
          <e type="operand">1.7661</e>
          <e type="operator" args="1">-</e>
          <e type="operand">5.1079</e>
          <e type="operand">11.6412</e>
          <e type="operand">17.2598</e>
          <e type="operand">22.2297</e>
          <e type="operand">26.7113</e>
          <e type="operand">30.8094</e>
          <e type="operand">34.5972</e>
          <e type="operand">38.1276</e>
          <e type="operand">41.4407</e>
          <e type="operand">44.5674</e>
          <e type="operand">47.5321</e>
          <e type="operand">50.3545</e>
          <e type="operand">53.0508</e>
          <e type="operand">55.6345</e>
          <e type="operand">58.1168</e>
          <e type="operand">60.5074</e>
          <e type="operand">62.8144</e>
          <e type="operand">20</e>
          <e type="operand">1</e>
          <e type="function" args="22">mat</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>