<?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: Usage of NaN in calculations in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892895#M208074</link>
    <description>&lt;P&gt;The bug (or unexpected and undesired result, as its behavior according to the help) with "min" and "max" is already present in Mathcad, so we can blame PTC only for not fixing it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1691572974962.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87287i512C067586811CA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1691572974962.png" alt="Werner_E_1-1691572974962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What we can blame PTC for is for making it even worse as your example with the logs showed&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1691573066793.png" style="width: 267px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87288i40E34DBD14220899/image-dimensions/267x224?v=v2" width="267" height="224" role="button" title="Werner_E_2-1691573066793.png" alt="Werner_E_2-1691573066793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am surprised that the imaginary part is pi. Would expect at least an integer multiple of 2 pi !?&lt;/P&gt;
&lt;P&gt;Here is the same in MC15&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1691573100074.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87290i28207253804D52EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_3-1691573100074.png" alt="Werner_E_3-1691573100074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is something "nice", too&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1691573625027.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87297iEADF24B9EFA52F23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_4-1691573625027.png" alt="Werner_E_4-1691573625027.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that NaNi and also the number in the exponent are labeled as "Unit" ????&lt;/P&gt;
&lt;P&gt;In MC15 this still was OK&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1691573703956.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87298i748851BB300B4B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_5-1691573703956.png" alt="Werner_E_5-1691573703956.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though the help states that using functions on NaN may give wrong results, you may consider opening a ticket at PTC support and report this bug and/or demand that this undesirable behavior should be changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 09:35:20 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2023-08-09T09:35:20Z</dc:date>
    <item>
      <title>Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892605#M208059</link>
      <description>&lt;P&gt;Every function, which is called with an argument of NaN should deliver NaN as a result !&lt;/P&gt;&lt;P&gt;Some functions deliver odd values such as log, ln, or ln0. Very problematic are the functions min and max which deliver min(NaN)=0 and max(NaN)=0. This can lead to incorrect results, as it was the case in our calculations. This error occured with Prime 8.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prime8_minmaxNaN.gif" style="width: 175px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87213i9BBD1A0E706839EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prime8_minmaxNaN.gif" alt="Prime8_minmaxNaN.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:57:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892605#M208059</guid>
      <dc:creator>Manfred_F</dc:creator>
      <dc:date>2023-08-08T08:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892689#M208061</link>
      <description>&lt;P&gt;Prime 9 also.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 374px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87235i3B103CC8444F5259/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 322px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87236i1A724D6F59AFA9AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, we should do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 223px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87237i7A93CDDDB1A59E67/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 268px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87238i404CAFEF85E681BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 301px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87239i8F87BDEFF6F8A82C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 238px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87240i042B677F6225F97E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But, if&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 219px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87241i6B145AD254B080E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;then also&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 245px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87242i91FB2B745DBD545E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 12:51:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892689#M208061</guid>
      <dc:creator>ttokoro</dc:creator>
      <dc:date>2023-08-08T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892803#M208065</link>
      <description>&lt;P&gt;Sorry to say, but this is behaviour as designed; according to the Help information on NaN in "About the &lt;SPAN class="mathvar"&gt;&lt;SPAN class="Search_Result_Highlight"&gt;NaN&lt;/SPAN&gt;&lt;/SPAN&gt; (Not a Number) Built-In Constant":&lt;/P&gt;
&lt;P&gt;"... A &lt;SPAN class="mathvar"&gt;&lt;SPAN class="Search_Result_Highlight"&gt;NaN&lt;/SPAN&gt;&lt;/SPAN&gt; can only be processed by functions specifically written to use it. &lt;U&gt;Other functions may return errors or incorrect results if passed a &lt;SPAN class="mathvar"&gt;&lt;SPAN class="Search_Result_Highlight"&gt;NaN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/U&gt;."&lt;/P&gt;
&lt;P&gt;After all, it's PTC sofware.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mathcad 11 gives:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1691527236336.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87259iCB5E9CF2D9531157/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1691527236336.png" alt="LucMeekes_0-1691527236336.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 20:42:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892803#M208065</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2023-08-08T20:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892837#M208069</link>
      <description>&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;did you try this on Prime8:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prime8_logNaN.gif" style="width: 235px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87277iA3DCD42E2C483EBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prime8_logNaN.gif" alt="Prime8_logNaN.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 05:03:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892837#M208069</guid>
      <dc:creator>Manfred_F</dc:creator>
      <dc:date>2023-08-09T05:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892881#M208073</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/208267"&gt;@ttokoro&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, we should do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 223px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87237i7A93CDDDB1A59E67/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 268px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87238i404CAFEF85E681BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 238px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87240i042B677F6225F97E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This does not help much as it still fails if NaN is the first entry of the vector!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1691572521372.png" style="width: 216px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87286iCA83FDC2E4582D08/image-dimensions/216x102?v=v2" width="216" height="102" role="button" title="Werner_E_0-1691572521372.png" alt="Werner_E_0-1691572521372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:16:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892881#M208073</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-08-09T09:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892895#M208074</link>
      <description>&lt;P&gt;The bug (or unexpected and undesired result, as its behavior according to the help) with "min" and "max" is already present in Mathcad, so we can blame PTC only for not fixing it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1691572974962.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87287i512C067586811CA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1691572974962.png" alt="Werner_E_1-1691572974962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What we can blame PTC for is for making it even worse as your example with the logs showed&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1691573066793.png" style="width: 267px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87288i40E34DBD14220899/image-dimensions/267x224?v=v2" width="267" height="224" role="button" title="Werner_E_2-1691573066793.png" alt="Werner_E_2-1691573066793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am surprised that the imaginary part is pi. Would expect at least an integer multiple of 2 pi !?&lt;/P&gt;
&lt;P&gt;Here is the same in MC15&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1691573100074.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87290i28207253804D52EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_3-1691573100074.png" alt="Werner_E_3-1691573100074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is something "nice", too&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1691573625027.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87297iEADF24B9EFA52F23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_4-1691573625027.png" alt="Werner_E_4-1691573625027.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that NaNi and also the number in the exponent are labeled as "Unit" ????&lt;/P&gt;
&lt;P&gt;In MC15 this still was OK&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1691573703956.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87298i748851BB300B4B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_5-1691573703956.png" alt="Werner_E_5-1691573703956.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though the help states that using functions on NaN may give wrong results, you may consider opening a ticket at PTC support and report this bug and/or demand that this undesirable behavior should be changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:35:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892895#M208074</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-08-09T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892928#M208078</link>
      <description>&lt;P&gt;Using vector M, Edit: Without NaN fix.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 632px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87328iC3B22154BCF99460/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 223px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87306iF57407A63F4DFDFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 271px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87307i025C6B6C21841C6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.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="image.png" style="width: 627px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87329iDEAC646BC78014F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 223px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87309i281B3B715A7BDCC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 244px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87310i84AE6F8BE1910788/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:24:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892928#M208078</guid>
      <dc:creator>ttokoro</dc:creator>
      <dc:date>2023-08-09T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892941#M208080</link>
      <description>&lt;P&gt;Which results do you get when you use a vector without any NaN's? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: AH, I see that you have editted your post and fixed your functions to deal correctly with that case &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 22:30:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892941#M208080</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-08-09T22:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892951#M208081</link>
      <description>&lt;P&gt;I would expect that min() or max() filters out the NaN and calculates then min/max from the rest. If there is no value left (all values are NaN) then the result should be NaN. I tried several combinations and it seems to depend on the sign and position of NaNs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prime8_minmaxNaN2.gif" style="width: 787px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87322i17E332CAFFFFE42B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prime8_minmaxNaN2.gif" alt="Prime8_minmaxNaN2.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 12:42:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892951#M208081</guid>
      <dc:creator>Manfred_F</dc:creator>
      <dc:date>2023-08-09T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of NaN in calculations</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892975#M208086</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks as though it checks vectors on NaN's only for the first element, and when found, the NaN is replaced with a 0; scalar NaN in min() and max() is replaced with a 0 as well. NaN's appearing elsewhere in the vector are discarded.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1691588719899.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/87331i7E4A923B5FC7A59A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1691588719899.png" alt="LucMeekes_0-1691588719899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Fortunately NaN is retained in other functions, one way or another...&lt;/P&gt;
&lt;P&gt;It's a bug.&lt;/P&gt;
&lt;P&gt;May be (remotely?) related to the bug in FilterNaN &lt;A href="https://community.ptc.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/882956#M207191" target="_blank"&gt;https://community.ptc.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/882956#M207191&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:46:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Usage-of-NaN-in-calculations/m-p/892975#M208086</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2023-08-09T13:46:33Z</dc:date>
    </item>
  </channel>
</rss>

