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