Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test if a numeric value is an IEEE 754 NaN
Introduce an IEEE 754 NaN value and test it:
In[1]:= | ![]() |
Out[1]= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
Detect IEEE 754 NaN values and replace them with Indeterminate for further computation:
In[3]:= | ![]() |
Out[4]= | ![]() |
Direct computation involving NaN values may give unexpected results:
In[5]:= | ![]() |
Out[5]= | ![]() |
NaNs should be replaced by Indeterminate for further computation:
In[6]:= | ![]() |
Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License