1--TEST-- 2Test for pre-defined math constants 3--INI-- 4precision=14 5--FILE-- 6<?php 7echo "M_E= "; 8var_dump(M_E); 9echo "M_LOG2E= "; 10var_dump(M_LOG2E); 11echo "M_LOG10E= "; 12var_dump(M_LOG10E); 13echo "M_LN2= "; 14var_dump(M_LN2); 15echo "M_LN10= "; 16var_dump(M_LN10); 17echo "M_PI= "; 18var_dump(M_PI); 19echo "M_PI_2= "; 20var_dump(M_PI_2); 21echo "M_PI_4= "; 22var_dump(M_PI_4); 23echo "M_1_PI= "; 24var_dump(M_1_PI); 25echo "M_2_PI= "; 26var_dump(M_2_PI); 27echo "M_SQRTPI= "; 28var_dump(M_SQRTPI); 29echo "M_2_SQRTPI= "; 30var_dump(M_2_SQRTPI); 31echo "M_LNPI= "; 32var_dump(M_LNPI); 33echo "M_EULER= "; 34var_dump(M_EULER); 35echo "M_SQRT2= "; 36var_dump(M_SQRT2); 37echo "M_SQRT1_2= "; 38var_dump(M_SQRT1_2); 39echo "M_SQRT3= "; 40var_dump(M_SQRT3); 41echo "INF= "; 42var_dump(INF); 43echo "NAN= "; 44var_dump(NAN); 45?> 46--EXPECT-- 47M_E= float(2.718281828459045) 48M_LOG2E= float(1.4426950408889634) 49M_LOG10E= float(0.4342944819032518) 50M_LN2= float(0.6931471805599453) 51M_LN10= float(2.302585092994046) 52M_PI= float(3.141592653589793) 53M_PI_2= float(1.5707963267948966) 54M_PI_4= float(0.7853981633974483) 55M_1_PI= float(0.3183098861837907) 56M_2_PI= float(0.6366197723675814) 57M_SQRTPI= float(1.772453850905516) 58M_2_SQRTPI= float(1.1283791670955126) 59M_LNPI= float(1.1447298858494002) 60M_EULER= float(0.5772156649015329) 61M_SQRT2= float(1.4142135623730951) 62M_SQRT1_2= float(0.7071067811865476) 63M_SQRT3= float(1.7320508075688772) 64INF= float(INF) 65NAN= float(NAN) 66