1--TEST--
2Test return type and value for expected input sinh()
3--INI--
4precision = 14
5--FILE--
6<?php
7/*
8 * Function is implemented in ext/standard/math.c
9*/
10
11$file_path = __DIR__;
12require($file_path."/allowed_rounding_error.inc");
13
14echo "sinh .5  = ";
15var_dump(sinh(0.5));
16if (allowed_rounding_error(sinh(0.5),0.52109530549375)){
17    echo "Pass\n";
18}
19else {
20    echo "Fail\n";
21}
22
23echo "sinh -0.5  = ";
24var_dump(sinh(-0.5));
25if (allowed_rounding_error(sinh(-0.5), -0.52109530549375)){
26    echo "Pass\n";
27}
28else {
29    echo "Fail\n";
30}
31
32echo "sinh 3  = ";
33var_dump(sinh(3.0));
34if (allowed_rounding_error(sinh(3.0), 10.01787492741)){
35    echo "Pass\n";
36}
37else {
38    echo "Fail\n";
39}
40
41echo "sinh -3  = ";
42var_dump(sinh(-3.0));
43if (allowed_rounding_error(sinh(-3.0), -10.01787492741)){
44    echo "Pass\n";
45}
46else {
47    echo "Fail\n";
48}
49
50?>
51--EXPECTF--
52sinh .5  = float(%f)
53Pass
54sinh -0.5  = float(%f)
55Pass
56sinh 3  = float(%f)
57Pass
58sinh -3  = float(%f)
59Pass
60