Pi Mathematical Constant

Pi is a mathematical constant and implemented as a UniqueConstant. Its numerical value is 3.14159265359 [Cohen/Cvitas/etal_2007] (p.112). As such, it is a PureNumber.

The constant should be used as a macro Pi:

PureNumber pi;
pi = PI;       // assigns the value of pi to variable pi
Pi is a Loki::Singleton, defined in namespace pi.

References

[Cohen/Cvitas/etal_2007] E.R. Cohen, T. Cvitas, J.G. Frey, B. Holmström, K. Kuchitsu, R. Marquardt, I. Mills, F. Pavese, M. Quack, J. Stohner, H.L. Strauss, M. Takami, and A.J. Thor, Quantities, Units and Symbols in Physical Chemistry, 3rd ed., Blackwell Science, Oxford, 2007.

back to Mathematical Quantities start page


Generated on Wed Apr 11 18:07:08 2012 for Quantities by  doxygen 1.5.6