<?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: Prime bug with &amp;quot;filterNaN&amp;quot; in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883176#M207205</link>
    <description>&lt;P&gt;In that case we know who to blame: PTC was responsible for Mathcad 15 and all versions of Prime.&lt;/P&gt;
&lt;P&gt;I'm responsible for the implementation of the filterNaN function in the PrimeExpress library.&lt;/P&gt;
&lt;P&gt;Note that it has this peculiarity:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1687627954554.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84193iFBBBE865475358B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1687627954554.png" alt="LucMeekes_0-1687627954554.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(It doesn't do vectors, yet)&lt;/P&gt;
&lt;P&gt;I now see how to mend that (the dirty way)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1687628406244.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84194i9375C98C617F9F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_1-1687628406244.png" alt="LucMeekes_1-1687628406244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 17:42:24 GMT</pubDate>
    <dc:creator>LucMeekes</dc:creator>
    <dc:date>2023-06-24T17:42:24Z</dc:date>
    <item>
      <title>Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/882956#M207191</link>
      <description>&lt;P&gt;To whoever may be interested&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="Werner_E_0-1687472599426.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84140i46A149E3D3799E64/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_0-1687472599426.png" alt="Werner_E_0-1687472599426.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 22:26:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/882956#M207191</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-06-22T22:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883168#M207202</link>
      <description>&lt;P&gt;Mathcad 11:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1687612311874.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84191i24D5C13F0A4B5689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1687612311874.png" alt="LucMeekes_0-1687612311874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PrimeExpress4 (with a correct implementation of the filterNaN function):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1687616882533.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84192iF0ACBDD37A78F34B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_1-1687616882533.png" alt="LucMeekes_1-1687616882533.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 14:29:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883168#M207202</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2023-06-24T14:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883169#M207203</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;PrimeExpress4 (with a correct implementation of the filterNaN function):&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The built-in filterNaN in Prime4 throws the same error as in P9.&lt;/P&gt;
&lt;P&gt;Actually the bug is already present in Mathcad 15 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 15:34:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883169#M207203</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-06-24T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883176#M207205</link>
      <description>&lt;P&gt;In that case we know who to blame: PTC was responsible for Mathcad 15 and all versions of Prime.&lt;/P&gt;
&lt;P&gt;I'm responsible for the implementation of the filterNaN function in the PrimeExpress library.&lt;/P&gt;
&lt;P&gt;Note that it has this peculiarity:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1687627954554.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84193iFBBBE865475358B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1687627954554.png" alt="LucMeekes_0-1687627954554.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(It doesn't do vectors, yet)&lt;/P&gt;
&lt;P&gt;I now see how to mend that (the dirty way)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_1-1687628406244.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84194i9375C98C617F9F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_1-1687628406244.png" alt="LucMeekes_1-1687628406244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 17:42:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883176#M207205</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2023-06-24T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883186#M207208</link>
      <description>&lt;P&gt;if M is a vector then : (MC15)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filterNaN.PNG" style="width: 436px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84202iB8CB4C7706A9097D/image-size/large?v=v2&amp;amp;px=999" role="button" title="filterNaN.PNG" alt="filterNaN.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 01:08:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883186#M207208</guid>
      <dc:creator>lvl107</dc:creator>
      <dc:date>2023-06-25T01:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prime bug with "filterNaN"</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883189#M207210</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14826"&gt;@LucMeekes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In that case we know who to blame: PTC was responsible for Mathcad 15 and all versions of Prime.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not that I have any inhibitions about accusing PTC of screwing up, but we can't be entirely sure in this case. We would have to test it in an early 14 version of Mathcad, where Mathsoft still was responsible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, my guess is that filterNaN somehow uses the vector of row numbers of ALL NaN's in the matrix to finally trim it. After all the help describes filterNaN as a combination of matchNaN and trim (which, without additional modifications,&amp;nbsp; is true for vectors only)&lt;BR /&gt;If the number of NaN's in the matrix is larger than the number of rows of the matrix, the error is thrown. Of course this is silly as the trim-vector would include some row numbers multiple times and therefore its OK if its larger.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1687660807470.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84206i3C38FD2C7EE6FB57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1687660807470.png" alt="Werner_E_0-1687660807470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consequently the "trim" command suffers from a similar problem:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1687660994595.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/84207iBB794D0A29ED1881/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1687660994595.png" alt="Werner_E_1-1687660994595.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Luc's version of "trim" from his excellent Express-collection does not suffer from this bug.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 12:14:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Prime-bug-with-quot-filterNaN-quot/m-p/883189#M207210</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-06-25T12:14:03Z</dc:date>
    </item>
  </channel>
</rss>

