next up previous contents index
Next: Vector Values Up: Parameter Statements Previous: Logical Variables   Contents   Index


Symbolic Constants

MAD recognises a few build-in built-in mathematical and physical constants. Additional constants can be defined by the command

REAL CONST label:CONSTANT=<real-expression>;
which defines a constant with the name label. The keyword REAL is optional, and label must be unique. An existing symbolic constant can never be redefined. The real-expression is evaluated at the time the CONST definition is read, and the result is stored as the value of the constant.

Example:


CONST IN=0.0254; // conversion of inches to metres



MAD User Guide, http://wwwslap.cern.ch/mad/