next up previous contents index
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 $\pi$ 3.1415926535898 1
TWOPI $2\pi$ 6.2831853071796 1
DEGRAD $180/\pi$ 57.295779513082 deg/rad
RADDEG $\pi/180$ .017453292519943 rad/deg
E $e$ 2.7182818284590 1
EMASS $m\_e$ .51099906e-3 GeV
PMASS $m\_p$ .93827231 GeV
CLIGHT $c$ 299792458 m/s



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