Lines Matching refs:tanh
2 Test return type and value for expected input tanh()
14 echo "tanh .5 = ";
15 var_dump(tanh(0.5));
16 if (allowed_rounding_error(tanh(0.5), 0.46211715726001)) {
23 echo "tanh -0.5 = ";
24 var_dump(tanh(-0.5));
25 if (allowed_rounding_error(tanh(-0.5), -0.46211715726001)) {
32 echo "tanh 3 = ";
33 var_dump(tanh(3.0));
34 if (allowed_rounding_error(tanh(3.0),0.99505475368673 )) {
41 echo "tanh -3 = ";
42 var_dump(tanh(-3.0));
43 if (allowed_rounding_error(tanh(-3.0),-0.99505475368673 )) {
52 tanh .5 = float(%f)
54 tanh -0.5 = float(%f)
56 tanh 3 = float(%f)
58 tanh -3 = float(%f)