<?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 NaN not always working as expected in Prime 3.0 in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/NaN-not-always-working-as-expected-in-Prime-3-0/m-p/309755#M120924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing a worksheet that performs a series of simple mathematical operations on an array of data. Sometimes there will be missing data, so I am using &lt;EM&gt;&lt;STRONG&gt;NaN &lt;/STRONG&gt;&lt;/EM&gt;for those cases. Most of these operations work just fine, returning &lt;EM&gt;&lt;STRONG&gt;NaN &lt;/STRONG&gt;&lt;/EM&gt;for any result based on &lt;EM&gt;&lt;STRONG&gt;NaN &lt;/STRONG&gt;&lt;/EM&gt;as an input. However, my worksheet tells me that asin(&lt;EM&gt;&lt;STRONG&gt;NaN&lt;/STRONG&gt;&lt;/EM&gt;) = 0, which I did not expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I decided to try &lt;EM&gt;&lt;STRONG&gt;NaN &lt;/STRONG&gt;&lt;/EM&gt;with more functions. Most behaved as expected, but several did not, as shown in the attached worksheet. Some are obvious bugs (e.g. &lt;EM&gt;asin&lt;/EM&gt;, &lt;EM&gt;acos&lt;/EM&gt;, &lt;EM&gt;log&lt;/EM&gt;, etc.), but other may just be inconsistent handling of incorrect data (compare &lt;EM&gt;gcd &lt;/EM&gt;and &lt;EM&gt;mod&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look this over and give me your opinions as well as provide other examples that I did not test. PTC, please look this over and incorporate the needed fixes for the next release. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 15:44:15 GMT</pubDate>
    <dc:creator>FredLusk</dc:creator>
    <dc:date>2018-05-03T15:44:15Z</dc:date>
    <item>
      <title>NaN not always working as expected in Prime 3.0</title>
      <link>https://community.ptc.com/t5/Mathcad/NaN-not-always-working-as-expected-in-Prime-3-0/m-p/309755#M120924</link>
      <description>I am developing a worksheet that performs a series of simple mathematical operations on an array of data. Sometimes there will be missing data, so I am using NaN for those cases. Most of these operations work just fine, returning NaN for any result based on NaN as an input. However,</description>
      <pubDate>Thu, 03 May 2018 15:44:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/NaN-not-always-working-as-expected-in-Prime-3-0/m-p/309755#M120924</guid>
      <dc:creator>FredLusk</dc:creator>
      <dc:date>2018-05-03T15:44:15Z</dc:date>
    </item>
  </channel>
</rss>

