Variables
Contents Up Previous Next

Variables

A variable is a string of alphanumeric characters which begins with a letter. Variables can be of the following form :

  • normal : var, var1, var_1
  • modifiable by user : %a(1,1,10)

Some variable names are reserved and must not be used :

PI PI value = 3.1415
j Pure complex value : j*j = -1
p Laplace variable : p = j*w
src Frequency source. This source has a 1V amplitude and its frequency evolves in the range declared in the directive ACMOD or ACPHASE
ans This variable contains the last operation value. Useful when using the console as an enhanced calculator.
__cv Convergence iteration value. Used as load analysis information.
__step Number of iterations achieved to reach convergence between two transient recording points. Used as load analysis information.