next up previous contents index
Next: DOOM: Interact with the Up: Parameter Statements Previous: Assignment to Variables   Contents   Index


VALUE: Output of Expressions

The statement

VALUE,VALUE=expression-vector;
evaluates a set of expressions using the most recent values of any operands and prints the results on the standard error file.

Example:


A=4;
VALUE,VALUE=TABLE(5,#*A);
P1=5;
P2=7;
VALUE,VALUE={P1,P2,P1*P2-3};
These commands give the results:

value: {0*A,1*A,2*A,3*A,4*A} = {0,4,8,12,16}
value: {P1,P2,P1*P2-3} = {5,7,32}
This commands serves mainly for printing one or more quantities which depend on matched attributes. It also allows the use of MAD as a programmable calculator. One may also tabulate functions.



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