Welcome | spec | C-PLOT | Support | Users | Contact
 
Contents -> Standard User Functions -> calc.4
C-PLOT Manual


C.2. - calc.4



Calc.4 is a general-purpose user function for manipulating your current data or creating new data.
    fn calc.4
    fn calc.4 expression [; expression ...]
    or
    fn . .
    


Calc.4 uses a grammar consisting of vector names (x, y etc.), variable names (upper-case letters), arithmetic operators (+, -, =, etc.), and function names (sin(), sqrt(), log(), etc.). The arithmetic expressions you enter are performed for each point in the current data. For instance, if you enter an expression such as y = 2 * x, the value of each y in your data set will be replaced with twice the value of the corresponding x. Syntax rules and examples follow.


  Top
  Prev | Next