Annotation of embedaddon/php/ext/standard/tests/math/constants_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test for pre-defined math constants
! 3: --INI--
! 4: precision=14
! 5: --FILE--
! 6: <?php
! 7: echo "M_E= ";
! 8: var_dump(M_E);
! 9: echo "M_LOG2E= ";
! 10: var_dump(M_LOG2E);
! 11: echo "M_LOG10E= ";
! 12: var_dump(M_LOG10E);
! 13: echo "M_LN2= ";
! 14: var_dump(M_LN2);
! 15: echo "M_LN10= ";
! 16: var_dump(M_LN10);
! 17: echo "M_PI= ";
! 18: var_dump(M_PI);
! 19: echo "M_PI_2= ";
! 20: var_dump(M_PI_2);
! 21: echo "M_PI_4= ";
! 22: var_dump(M_PI_4);
! 23: echo "M_1_PI= ";
! 24: var_dump(M_1_PI);
! 25: echo "M_2_PI= ";
! 26: var_dump(M_2_PI);
! 27: echo "M_SQRTPI= ";
! 28: var_dump(M_SQRTPI);
! 29: echo "M_2_SQRTPI= ";
! 30: var_dump(M_2_SQRTPI);
! 31: echo "M_LNPI= ";
! 32: var_dump(M_LNPI);
! 33: echo "M_EULER= ";
! 34: var_dump(M_EULER);
! 35: echo "M_SQRT2= ";
! 36: var_dump(M_SQRT2);
! 37: echo "M_SQRT1_2= ";
! 38: var_dump(M_SQRT1_2);
! 39: echo "M_SQRT3= ";
! 40: var_dump(M_SQRT3);
! 41: echo "INF= ";
! 42: var_dump(INF);
! 43: echo "NAN= ";
! 44: var_dump(NAN);
! 45: ?>
! 46: --EXPECT--
! 47: M_E= float(2.718281828459)
! 48: M_LOG2E= float(1.442695040889)
! 49: M_LOG10E= float(0.43429448190325)
! 50: M_LN2= float(0.69314718055995)
! 51: M_LN10= float(2.302585092994)
! 52: M_PI= float(3.1415926535898)
! 53: M_PI_2= float(1.5707963267949)
! 54: M_PI_4= float(0.78539816339745)
! 55: M_1_PI= float(0.31830988618379)
! 56: M_2_PI= float(0.63661977236758)
! 57: M_SQRTPI= float(1.7724538509055)
! 58: M_2_SQRTPI= float(1.1283791670955)
! 59: M_LNPI= float(1.1447298858494)
! 60: M_EULER= float(0.57721566490153)
! 61: M_SQRT2= float(1.4142135623731)
! 62: M_SQRT1_2= float(0.70710678118655)
! 63: M_SQRT3= float(1.7320508075689)
! 64: INF= float(INF)
! 65: NAN= float(NAN)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>