diff options
author | Jesus M. Castagnetto <jmcastagnetto@php.net> | 2000-08-19 22:01:37 +0000 |
---|---|---|
committer | Jesus M. Castagnetto <jmcastagnetto@php.net> | 2000-08-19 22:01:37 +0000 |
commit | e103155d9201249e42d1da76ddcd6e3218ca945f (patch) | |
tree | 925d46f189af67e06fc03f45247c3831e95cff1a /ext/standard/php_math.h | |
parent | 61df257c0f5c6f04ae6eefb9baa16574a1afd08f (diff) | |
download | php-git-e103155d9201249e42d1da76ddcd6e3218ca945f.tar.gz |
Added some more predefined constants
Diffstat (limited to 'ext/standard/php_math.h')
-rw-r--r-- | ext/standard/php_math.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h index 6fe62359dd..1f2e5fa8b0 100644 --- a/ext/standard/php_math.h +++ b/ext/standard/php_math.h @@ -97,10 +97,22 @@ PHP_FUNCTION(rad2deg); #define M_2_PI 0.63661977236758134308 /* 2/pi */ #endif +#ifndef M_SQRTPI +#define M_SQRTPI 1.77245385090551602729 /* sqrt(pi) */ +#endif + #ifndef M_2_SQRTPI #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ #endif +#ifndef M_LNPI +#define M_LNPI 1.14472988584940017414 /* ln(pi) */ +#endif + +#ifndef M_EULER +#define M_EULER 0.57721566490153286061 /* Euler constant */ +#endif + #ifndef M_SQRT2 #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ #endif @@ -109,4 +121,8 @@ PHP_FUNCTION(rad2deg); #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #endif +#ifndef M_SQRT3 +#define M_SQRT3 1.73205080756887729352 /* sqrt(3) */ +#endif + #endif /* PHP_MATH_H */ |