NAME
const.h - header for constants
INCLUDE
include "const.h"
KEYWORDS
constants, DUMMY, INFINITY
DESCRIPTION
The header file const.h contains several const values for fre
quent use in C++ programs.
DUMMY - real variable that can be recognized, it equals -99999.0,
but this value has no meaning. The value is chosen to be
"unlikely" so that the DUMMY value can be recognized from a set
of real numbers.
ZERO - real variable that equals 0.
INFINITY - real variable for indicating inifinity. Its actual
numerical value is .
UNITY - real value that equals 1.
Some system header files may declare macros with the same name.
These macros will then take precedence.
EXAMPLES
| Interval I(-INFINITY,ZERO); // interval from -infinity to
zero
if (t == DUMMY) // t has no meaning
// ....
return true; // bool return value
DEVELOPED BY
SINTEF Applied Mathematics, Oslo, Norway, and University of Oslo,
Dept. of Mathematics, Norway
AUTHOR
Hans Petter Langtangen, SINTEF/UiO