MagicPlot Manual

Plotting and nonlinear fitting software

User Tools

Site Tools


nan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
nan [Fri Feb 25 17:31:29 2011]
Alexander
nan [Sat Jan 16 20:07:19 2021] (current)
Alexander
Line 34: Line 34:
 ===== NaN in Expressions ===== ===== NaN in Expressions =====
 You can use predefined constants ''NaN'', ''nan'' or ''NAN'' in expressions to specify NaN value. You can use predefined constants ''NaN'', ''nan'' or ''NAN'' in expressions to specify NaN value.
 +
 +The ''isNaN(x)'' function checks if the argument is NaN.
  
 === Example === === Example ===
   * If you set a [[set_column_formula|Column Formula]] ''if(col(B) >= 0, col(B), NaN)'', it will return only positive values from column B. Negative values are replaced with NaN value. You can use this expression to filter negative values if you do not want to use them in future calculations. Note that //”Not-a-Number returned at row #”// warning can be shown for such expressions.   * If you set a [[set_column_formula|Column Formula]] ''if(col(B) >= 0, col(B), NaN)'', it will return only positive values from column B. Negative values are replaced with NaN value. You can use this expression to filter negative values if you do not want to use them in future calculations. Note that //”Not-a-Number returned at row #”// warning can be shown for such expressions.
nan.1298644289.txt.gz · Last modified: Sun Nov 8 12:20:32 2015 (external edit)