next up previous contents index
Next: Assignment to Variables Up: Parameter Statements Previous: Symbolic Constants   Contents   Index


Vector Values

A vector of expressions is established by a statement

REAL VECTOR vector-name=vector-expression;
The keyword REAL is optional. It creates a new global vector vector-name and discards any old vector with the same name. Its value depends on all quantities occurring in vector-expression. 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:


VECTOR A_AMPL={2.5e-3,3.4e-2,0,4.5e-8};
VECTOR A_ON=TABLE(10,1);
Circular definitions are not allowed.



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