CONSTDEF

From iMath
Revision as of 19:04, 27 June 2017 by Jrheinlaender (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

@label@ { options } CONSTDEF [*] expression


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Define a constant. The expression most be of the form symbol = expression, and it must evaluate to a quantity.

The starred form will suppress printing of the result.

Constants are not erased by CLEAREQUATIONS. This makes it possible to specify general constants only once in the file and reuse them for several different calculations.

Example

@c0@ CONSTDEF c_0 = 299792458 {"m" over "s"} defines the speed of light in a vacuum.

See also

EQDEF EXDEF