MagicPlot Manual

Plotting and nonlinear fitting software

User Tools

Site Tools


formula

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
formula [Wed Oct 15 00:37:26 2014]
Alexander
formula [Sun Nov 8 12:21:24 2015] (current)
Line 71: Line 71:
   * ''​if(col(B) >= 0, col(B), NaN)''​ --- returns only positive values from column B. Negative values are replaced with ''​NaN''​ value (empty cell). 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 expression.   * ''​if(col(B) >= 0, col(B), NaN)''​ --- returns only positive values from column B. Negative values are replaced with ''​NaN''​ value (empty cell). 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 expression.
   * ''​if(col(A) > 0 & col(B) > 0, max(col(A), col(B)), NaN)''​   * ''​if(col(A) > 0 & col(B) > 0, max(col(A), col(B)), NaN)''​
-  * ''​if(x >= 0, x, -x)''​ -- fit function example.+  * ''​a * if(x >= 0, x, -x)''​ -- custom ​fit function example ​for abs.
  
 ==== Equality Checking ==== ==== Equality Checking ====
formula.txt ยท Last modified: Sun Nov 8 12:21:24 2015 (external edit)