From: Jesus M. Castagnetto Date: Sat, 19 Aug 2000 22:01:37 +0000 (+0000) Subject: Added some more predefined constants X-Git-Tag: php-4.0.2RC1~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e103155d9201249e42d1da76ddcd6e3218ca945f;p=php Added some more predefined constants --- 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 */