next up previous contents index
Next: Logical Variables Up: Variable Definitions Previous: Real Scalar Variables   Contents   Index


Real Vector Variables


REAL VECTOR variable-name=vector-expression;
The keyword REAL is optional. This statement creates a new global variable variable-name and discards any old variable with the same name. Its value depends on all quantities occurring in vector-expression on the right-hand side. Whenever an operand changes in vector-expression, a new value is calculated. The definition may be thought of as a mathematical equation. However, MAD is not able to solve the equation for a quantity on the right-hand side.

Example:


REAL VECTOR A = TABLE(10, #);
REAL VECTOR B = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
Circular definitions are not allowed, but redefinitions by assignment are allowed.



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