CDL - EVAL: Difference between revisions

257 bytes added ,  15:02, 22 May 2021
m
(Created page with "== Introduction == The EVAL functions gives the possibility to modfy a measurement and plot the result as a separate line. So theoretically one could plot the Dewpoint as a ca...")
 
Line 4: Line 4:
To be able to accomplish the calculations, on e needs certain additional functions such as SUM, LN and EXP. The functions which are available to the user are described below. The list will grow as the functions become available.
To be able to accomplish the calculations, on e needs certain additional functions such as SUM, LN and EXP. The functions which are available to the user are described below. The list will grow as the functions become available.


Each equation is formulated between square brackets and is meant to modify a weather variable. Available to the user are functions, the weather variables and the mathematical operators +, -, * and /.  
== Equation ==
Each equation is formulated between square brackets and is meant to modify a weather variable. Available to the user are functions, the weather variables and the mathematical operators +, -, * and /. EVAL Equations are more or less formally described as:
 
  EVAL '[' Equation ']'
 
  Equation := Term [ '+'|'-'|'*'|'/'  Term ]
 
  Term := '(' Equation ')' | Function '(' Equation ')' | Plotvariable | Number
 
  Number := <Integer>[.[<Integer>]]


== Functions ==
== Functions ==