Added some more predefined constants

This commit is contained in:
Jesus M. Castagnetto 2000-08-19 22:01:37 +00:00
parent 61df257c0f
commit e103155d92

View File

@ -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 */