Next: Variable labels
Up: Operands in Expressions
Previous: Literal Constants
  Contents
  Index
Symbolic constants
MAD recognises a few build-in built-in
mathematical and physical constants.
Their names must not be used for user-defined labels.
Additional symbolic constants may be defined to
simplify their repeated use in statements and expressions.
Table 2.7:
Predefined Symbolic Constants
MAD name |
Mathematical symbol |
Value |
Unit |
PI |
|
3.1415926535898 |
1 |
TWOPI |
|
6.2831853071796 |
1 |
DEGRAD |
|
57.295779513082 |
deg/rad |
RADDEG |
|
.017453292519943 |
rad/deg |
E |
|
2.7182818284590 |
1 |
EMASS |
|
.51099906e-3 |
GeV |
PMASS |
|
.93827231 |
GeV |
CLIGHT |
|
299792458 |
m/s |
MAD User Guide, http://wwwslap.cern.ch/mad/