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