Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Fred/MathCst.hpp

Go to the documentation of this file.
00001 #ifndef __J2K__Math_Constant_HPP__
00002 #define __J2K__Math_Constant_HPP__
00003 
00004 #define Math_PI  3.1415926535897932 
00005 #define Math_E   2.7182818284590451
00006 
00007 // System Independent High Precision constants with 25 digits !
00008 #define PI      3.141592653589793238462643383279502884197169399375105820975
00009 #define twoPI   (2*PI)
00010 #define halfPI  (PI/2)
00011 #define DegRad  (PI/180.0)
00012 #define RadDeg  (180.0/PI)
00013 #define E       2.718281828459045235360287471352662497757247093699959574967
00014 #define Sqrt2   1.414213562373095048801688724209698078569671875376948073177
00015 #define Sqrt3   1.732050807568877293527446341505872366942805253810380628056
00016 #define Ln2     0.693147180559945309417232121458176568075500134360255254121
00017 #define Ln10    2.30258509299404568 
00018 #define GOLDEN  1.618033988749894848204586834365638117720309179805762862135
00019 
00020 #define BitsToDigits  (LN2/LN10)
00021 #define DigitsToBits  (LN10/LN2)
00022 
00023 #endif

Generated on Sun Oct 14 18:46:32 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001