<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Computing speed and CPU performance consumption with different combinations of &amp;quot;IF&amp;quot; st in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052949#M220388</link>
    <description>&lt;P&gt;Turn both calculations into functions of T, p&amp;nbsp; and perform timing tests (use the time(0) function) by calling each function multiple times using a series of predefined values of T, p or random created values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I notice is that your three functions p.s(T), p.B23(T) and T.B23(100MPa) are called multiple times and it may be beneficial if you calculate the values only once and assign the result variables which then are used in the comparisons. Especially&amp;nbsp;T.B23(100MPa) is a constant value independent from T and so could be precalculated in front of the function in the worksheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure about the "AND" here? Shouldn't it rather be an "OR" ??&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769734083478.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134083i3A91EE741953628F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1769734083478.png" alt="Werner_E_0-1769734083478.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if it would speed up the evaluation but you could omit the lower limit in all your comparisons. Just use if T&amp;lt;b instead of if a&amp;lt;T&amp;lt;b. &lt;BR /&gt;But you will have to add an additional "if T&amp;lt;To then return errormessage" at the front which may eat up the gain of speed by not having to check the lower bounds, You'll have to experiment with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you set up a worksheet in Mathcad to time both functions you could post it here and we could convert it and test it in Prime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, I guess you&amp;nbsp; hardly will see the result "4" because of numerical inaccuracies due to tiny internal round-off errors.&lt;/P&gt;
&lt;P&gt;So either omit that case completely and only distinct between area 1 or 2 or, If its important to check if point is near(!!) the line you may demand only approximate equality rather than exact equality. This means that instead of&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769732632921.png" style="width: 156px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134081iB1C690EF8EC33287/image-dimensions/156x43?v=v2" width="156" height="43" role="button" title="Werner_E_0-1769732632921.png" alt="Werner_E_0-1769732632921.png" /&gt;&lt;/span&gt;&lt;BR /&gt;you would use&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1769732663059.png" style="width: 228px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134082i259958619FFCCDF2/image-dimensions/228x54?v=v2" width="228" height="54" role="button" title="Werner_E_1-1769732663059.png" alt="Werner_E_1-1769732663059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It does not matter if you use &amp;lt;= or just &amp;lt; and you may adjust the 'level of equality' to your needs - maybe 10&lt;SUP&gt;-3&lt;/SUP&gt; Pa is too low.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2026 00:48:16 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2026-01-30T00:48:16Z</dc:date>
    <item>
      <title>Computing speed and CPU performance consumption with different combinations of "IF" statement</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052945#M220387</link>
      <description>&lt;P&gt;Greetings&lt;BR /&gt;I have a rather strange question, with topic that some people might consider insignificant and unimportant, but this particular function that Im making will probably be used numerous times in a single worksheet. For that reason Im trying to optimize almost every function in my file as much as possible. Ofcourse I dont expect a detailed answer with testing results etc, but rather your thoughts on this topic.&lt;/P&gt;&lt;P&gt;In this case, I need to determine in which region of IAPWS-IF97 (formulation for thermodynamic properties of water) the point lies on a pressure-temperature plot.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="P-T Diagram, Validity range of IF-97" style="width: 985px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134073i51D502BC5D3C2F7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="PT.jpg" alt="P-T Diagram, Validity range of IF-97" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;P-T Diagram, Validity range of IF-97&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, here is the question itself: wich model of (p,T) function would be faster and easier to calculate (e.g. on a low-spec hardware), the one with separated IF`s, or the one where IF`s combined with usage of multiple "and (˄)" and "or (˅)"?&lt;BR /&gt;And will the result be different in Mathcad Prime?&lt;BR /&gt;Model 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nickelynn_0-1769718415458.png" style="width: 435px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134074iAB1EE3F6EF41162E/image-dimensions/435x497?v=v2" width="435" height="497" role="button" title="Nickelynn_0-1769718415458.png" alt="Nickelynn_0-1769718415458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Model 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nickelynn_0-1769721891167.png" style="width: 592px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134080iB54721BEDE12A6DC/image-dimensions/592x225?v=v2" width="592" height="225" role="button" title="Nickelynn_0-1769721891167.png" alt="Nickelynn_0-1769721891167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Functions and constants used (for clarification, in case you are interested)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;p&lt;FONT size="1 2 3 4 5 6 7"&gt;s&lt;/FONT&gt;(T) - saturation&amp;nbsp;pressure at given temperature&lt;/LI&gt;&lt;LI&gt;p&lt;FONT size="1 2 3 4 5 6 7"&gt;B23&lt;/FONT&gt;(T) - pressure-temperature&amp;nbsp;equation for boundary between regions 2 and 3&lt;/LI&gt;&lt;LI&gt;T&lt;FONT size="1 2 3 4 5 6 7"&gt;B23&lt;/FONT&gt;(p) - backward version of p&lt;FONT size="1 2 3 4 5 6 7"&gt;B23&lt;/FONT&gt;(T)&lt;/LI&gt;&lt;LI&gt;T&lt;FONT size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt; = 273.15 K&lt;/LI&gt;&lt;LI&gt;p&lt;FONT size="1 2 3 4 5 6 7"&gt;0&lt;/FONT&gt; = p&lt;FONT size="1 2 3 4 5 6 7"&gt;s&lt;/FONT&gt;(273.15 K) = 611.213 Pa&lt;/LI&gt;&lt;LI&gt;T&lt;FONT size="1 2 3 4 5 6 7"&gt;c&lt;/FONT&gt; = 647.096 K&lt;/LI&gt;&lt;LI&gt;p&lt;FONT size="1 2 3 4 5 6 7"&gt;c&lt;/FONT&gt; = 22.064 MPa&lt;/LI&gt;&lt;LI&gt;R7PresValRangeErr =&amp;nbsp;"Error: Pressure is Out of the Validity Range (611.213 Pa ≤ p ≤ 100 MPa)"&lt;/LI&gt;&lt;LI&gt;R7TempValRangeErr =&amp;nbsp;"Error: Temperature is Out of the Validity Range (273.15 K ≤ T ≤ 2273.15 K)"&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Reg5ValRangeErr =&amp;nbsp;"Error: Point is Out of the Validity Range of Region 5 (611.213 Pa ≤ p ≤ 50 MPa, 1073.15 K &amp;lt; T ≤ 2273.15 K)"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Jan 2026 21:25:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052945#M220387</guid>
      <dc:creator>Nickelynn</dc:creator>
      <dc:date>2026-01-29T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052949#M220388</link>
      <description>&lt;P&gt;Turn both calculations into functions of T, p&amp;nbsp; and perform timing tests (use the time(0) function) by calling each function multiple times using a series of predefined values of T, p or random created values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I notice is that your three functions p.s(T), p.B23(T) and T.B23(100MPa) are called multiple times and it may be beneficial if you calculate the values only once and assign the result variables which then are used in the comparisons. Especially&amp;nbsp;T.B23(100MPa) is a constant value independent from T and so could be precalculated in front of the function in the worksheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure about the "AND" here? Shouldn't it rather be an "OR" ??&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769734083478.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134083i3A91EE741953628F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1769734083478.png" alt="Werner_E_0-1769734083478.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if it would speed up the evaluation but you could omit the lower limit in all your comparisons. Just use if T&amp;lt;b instead of if a&amp;lt;T&amp;lt;b. &lt;BR /&gt;But you will have to add an additional "if T&amp;lt;To then return errormessage" at the front which may eat up the gain of speed by not having to check the lower bounds, You'll have to experiment with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you set up a worksheet in Mathcad to time both functions you could post it here and we could convert it and test it in Prime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, I guess you&amp;nbsp; hardly will see the result "4" because of numerical inaccuracies due to tiny internal round-off errors.&lt;/P&gt;
&lt;P&gt;So either omit that case completely and only distinct between area 1 or 2 or, If its important to check if point is near(!!) the line you may demand only approximate equality rather than exact equality. This means that instead of&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769732632921.png" style="width: 156px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134081iB1C690EF8EC33287/image-dimensions/156x43?v=v2" width="156" height="43" role="button" title="Werner_E_0-1769732632921.png" alt="Werner_E_0-1769732632921.png" /&gt;&lt;/span&gt;&lt;BR /&gt;you would use&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1769732663059.png" style="width: 228px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134082i259958619FFCCDF2/image-dimensions/228x54?v=v2" width="228" height="54" role="button" title="Werner_E_1-1769732663059.png" alt="Werner_E_1-1769732663059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It does not matter if you use &amp;lt;= or just &amp;lt; and you may adjust the 'level of equality' to your needs - maybe 10&lt;SUP&gt;-3&lt;/SUP&gt; Pa is too low.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 00:48:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052949#M220388</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-01-30T00:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052987#M220390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you looked at the CoolProp wrapper for Prime.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://coolprop.org/" target="_blank" rel="noopener"&gt;https://coolprop.org/&lt;/A&gt;&amp;nbsp;for documentation&lt;/P&gt;
&lt;P&gt;It complies with&amp;nbsp;&lt;SPAN&gt;IAPWS-IF97&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are reinventing the wheel.&amp;nbsp; Web site to download two files&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sourceforge.net/projects/coolprop/files/CoolProp/7.2.0/MathcadPrime/" target="_blank" rel="noopener"&gt;https://sourceforge.net/projects/coolprop/files/CoolProp/7.2.0/MathcadPrime/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;CoolProp is compiled code so will run far faster than Primes interpreted programming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The web site has two&lt;SPAN&gt;&amp;nbsp;files, a Prime worksheet with examples, and a DLL file&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just put the DLL in C:\Program Files\PTC\Mathcad Prime 11.0.0.0\Custom Functions and hey presto you can use the functions.&lt;/P&gt;
&lt;P&gt;After you put the DLL in the folder restart Prime to register it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Worksheet from the web has examples&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They are fast&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134093i5C4530B71AEDBAC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 07:11:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1052987#M220390</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-01-30T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053161#M220404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Looked into it a bit deeper and you need to specify IF97 like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 529px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134155i8554B60232E1D518/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 16:25:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053161#M220404</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-01-30T16:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053163#M220405</link>
      <description>&lt;P&gt;Hi Werner,&lt;BR /&gt;Sorry for delayed reply, had stuff to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;perform timing tests (use the time(0) function) by calling each function multiple times using a series of predefined values of T, p&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for pointing out onto this time() function, didnt know about the existence of such.&lt;BR /&gt;I used it to test out my functions, file attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;functions p.s(T), p.B23(T) and T.B23(100MPa) are called multiple times and it may be beneficial if you calculate the values only once and assign the result variables which then are used in the comparisons. Especially&amp;nbsp;T.B23(100MPa) is a constant value independent from T and so could be precalculated in front of the function in the worksheet.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Indeed, assigning function's value as a variable instead of calling it multiple times is beneficial, I didnt use it on my screenshots just because I wanted to show the IF's structure only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Are you sure about the "AND" here? Shouldn't it rather be an "OR" ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769734083478.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134083i3A91EE741953628F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1769734083478.png" alt="Werner_E_0-1769734083478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, my bad on this one, didnt notice it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am not sure if it would speed up the evaluation but you could omit the lower limit in all your comparisons. Just use if T&amp;lt;b instead of if a&amp;lt;T&amp;lt;b.&lt;BR /&gt;But you will have to add an additional "if T&amp;lt;To then return errormessage" at the front which may eat up the gain of speed by not having to check the lower bounds, You'll have to experiment with this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, agree with you, so I cloned the 1st model with the applied modification and also tested it out.&lt;/P&gt;&lt;P&gt;In the end, the first model (untouched) is labeled&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;α&lt;/STRONG&gt;&lt;/EM&gt;, its modified version - &lt;STRONG&gt;&lt;EM&gt;β&lt;/EM&gt;&lt;/STRONG&gt;, and the original second model is &lt;STRONG&gt;&lt;EM&gt;γ&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;BTW, I guess you&amp;nbsp; hardly will see the result "4" because of numerical inaccuracies due to tiny internal round-off errors.&lt;/P&gt;&lt;P&gt;So either omit that case completely and only distinct between area 1 or 2 or, If its important to check if point is near(!!) the line you may demand only approximate equality rather than exact equality. This means that instead of&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769732632921.png" style="width: 156px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134081iB1C690EF8EC33287/image-dimensions/156x43?v=v2" width="156" height="43" role="button" title="Werner_E_0-1769732632921.png" alt="Werner_E_0-1769732632921.png" /&gt;&lt;/span&gt;&lt;BR /&gt;you would use&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1769732663059.png" style="width: 228px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134082i259958619FFCCDF2/image-dimensions/228x54?v=v2" width="228" height="54" role="button" title="Werner_E_1-1769732663059.png" alt="Werner_E_1-1769732663059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It does not matter if you use &amp;lt;= or just &amp;lt; and you may adjust the 'level of equality' to your needs - maybe 10-3 Pa is too low.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Indeed, on general occasions, it has better to be exactly as you described. But in my situation, user would specifically get the saturated pressure value from temperature (or backwards) and input it in the function, and not "point finger into the sky and guess it right".&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 30 Jan 2026 16:27:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053163#M220405</guid>
      <dc:creator>Nickelynn</dc:creator>
      <dc:date>2026-01-30T16:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053169#M220406</link>
      <description>&lt;P&gt;Yes, Im aware of CoolProp libriary, but as you said - it is for Prime version, and for Legacy Mathcad you have to build .dll by your own (there is an instruction how to do it, but still it is too complex for me).&lt;/P&gt;&lt;P&gt;And coolprop have too much functionality, and because of that it has quite an amount of inputs also. All in all, it excesses&amp;nbsp;my needs, and I almost finished IAPWS-IF97 (and same implies for IAPWS-95) integration in Mathcad, so there is no necessity in coolprop.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 16:56:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053169#M220406</guid>
      <dc:creator>Nickelynn</dc:creator>
      <dc:date>2026-01-30T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053172#M220407</link>
      <description>&lt;P&gt;Perhaps a dumb question: why not try using the converter to convert your stuff to Prime and then using coolprop? Original Mathcad was great, but it is now a dead end.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 17:09:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053172#M220407</guid>
      <dc:creator>rgunwaldsen</dc:creator>
      <dc:date>2026-01-30T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053173#M220408</link>
      <description>&lt;P&gt;And to be fair, I was planning to post it here (as separate topic) after I finish polishing everithing. You already can see how it performs on this diagrams (pictures from november 2025, but here are only boundaries)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IF-97 P-T Diagram Mathcad.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/131182i7540538D00E78800/image-size/large?v=v2&amp;amp;px=999" role="button" title="IF-97 P-T Diagram Mathcad.png" alt="IF-97 P-T Diagram Mathcad.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IF-97 P-H Diagram Mathcad.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/131184i7F5E347BC2C411E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="IF-97 P-H Diagram Mathcad.png" alt="IF-97 P-H Diagram Mathcad.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IF-97 P-S Diagram Mathcad.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/131186iEE43C5A30EE89920/image-size/large?v=v2&amp;amp;px=999" role="button" title="IF-97 P-S Diagram Mathcad.png" alt="IF-97 P-S Diagram Mathcad.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I've also ran the computer-program verification tests on values of different properties (the same inputs as in the IAPWS formulations, so anyone can easily compare and check).&lt;/P&gt;&lt;P&gt;I also plan to make a doc file with descriptions on&amp;nbsp;functions and instructions how to use them.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 17:23:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053173#M220408</guid>
      <dc:creator>Nickelynn</dc:creator>
      <dc:date>2026-01-30T17:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053175#M220409</link>
      <description>&lt;P&gt;For me, the UI of the old one is simplier and&amp;nbsp;more convenient to use and orient. Also I alreaddy used to the key-combinations (shortcuts) that doesnt work the same in Prime (now it is about the muscle memory etc).&lt;/P&gt;&lt;P&gt;Plus, it might be my delusional&amp;nbsp;perception, but from my experience I got impression that Prime works slower than OG (not in terms of calculations, but in terms of working with interface and its functionality)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 17:20:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053175#M220409</guid>
      <dc:creator>Nickelynn</dc:creator>
      <dc:date>2026-01-30T17:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053180#M220410</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;To save you the trouble here is three Coolprop 6.4.1 files for Mathcad 15.&lt;/P&gt;
&lt;P&gt;a DLL you can save to&amp;nbsp;C:\Program Files (x86)\Mathcad\Mathcad 15\userefi&lt;/P&gt;
&lt;P&gt;A Mathcad 15 worksheet with examples of the functions&lt;/P&gt;
&lt;P&gt;A descriptive&amp;nbsp; xml file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No building the DLL is necessary as it has been done for you.&amp;nbsp; The enclosed file works out of the box if you put it in the "userefi" directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 474px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134157iB9ED1E2F83D2979B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can use it to check your work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great graphs in your last post&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 17:50:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053180#M220410</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-01-30T17:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053214#M220417</link>
      <description>&lt;P&gt;Here are the results of your timing tests on my (slow) machine.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1769822830818.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134166i33DD800E709B53AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_0-1769822830818.png" alt="Werner_E_0-1769822830818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also added a test using slightly less than 1 Million evenly distributed in the whole area visible in your plot. Time shown is the total calc time, not divided by the number of points checked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1769822988162.png" style="width: 513px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134167i6B08EB92041F5477/image-dimensions/513x226?v=v2" width="513" height="226" role="button" title="Werner_E_1-1769822988162.png" alt="Werner_E_1-1769822988162.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would say that even though the third approach is slightly faster (in this run, pressing Ctrl-F9 you might see another 'winner') they all are equally well.&lt;/P&gt;
&lt;P&gt;I converted the sheet to Prime 11.0.0.0 and recalculated it. Of course multithreading was turned off as otherwise timing would not work.&lt;/P&gt;
&lt;P&gt;Here are the disappointing results running on the very same machine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1769823193076.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134168i1A2DF23871C94C61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_2-1769823193076.png" alt="Werner_E_2-1769823193076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1769823231742.png" style="width: 517px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134169iB6BD12ABCB9BD842/image-dimensions/517x226?v=v2" width="517" height="226" role="button" title="Werner_E_3-1769823231742.png" alt="Werner_E_3-1769823231742.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for fun I added the points differently colored to your plot (its no surprise that none of them is in 'region' 4). So there is a visual check for plausibility of the region test function(s).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1769823439409.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/134170iD1F7F50E0DEB216F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_4-1769823439409.png" alt="Werner_E_4-1769823439409.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I attach my modified MC15 sheet and also for whatever it may be worth the converted P11 sheet. The latter is quite a mess and the plots fail. I made no attempts to clean up or fix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 01:39:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1053214#M220417</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-01-31T01:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Computing speed and CPU performance consumption with different combinations of "IF" st</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1059082#M220739</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/1014935"&gt;@Nickelynn&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 10:55:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Computing-speed-and-CPU-performance-consumption-with-different/m-p/1059082#M220739</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2026-03-18T10:55:06Z</dc:date>
    </item>
  </channel>
</rss>

