Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / standard / tests / math / atanh_basic.phpt
blob7e7144e23939a85fb4ba4804914495bb0218e5dc
1 --TEST--
2 Test return type and value for expected input atanh()
3 --INI--
4 precision = 14
5 --FILE--
6 <?php
7 /* 
8  * proto float atanh(float number)
9  * Function is implemented in ext/standard/math.c
10 */ 
12 $file_path = dirname(__FILE__);
13 require($file_path."/allowed_rounding_error.inc");
15 echo "atanh  0.46211715726001 = ";
16 var_dump(atanh(0.46211715726001));
17 if (allowed_rounding_error(atanh(0.46211715726001), 0.5))
19         echo "Pass\n";
21 else {
22         echo "Fail\n";
25 echo "atanh  0.99505475368673 = ";
26 var_dump(atanh(0.99505475368673));
27 if (allowed_rounding_error(atanh(0.99505475368673), 3.0))
29         echo "Pass\n";
31 else {
32         echo "Fail\n";
37 --EXPECTF--
38 atanh  0.46211715726001 = float(%f)
39 Pass
40 atanh  0.99505475368673 = float(%f)
41 Pass