Lines Matching refs:cos
2 Test return type and value for expected input cos()
8 * proto float cos(float number)
26 echo "cos 30 = ";
27 var_dump(cos($thirty));
28 if (allowed_rounding_error(cos($thirty),0.86602540378444)) {
35 echo "cos 60 = ";
36 var_dump(cos($sixty));
37 if (allowed_rounding_error(cos($sixty),0.5)) {
44 echo "cos 90 = ";
45 var_dump(cos($ninety));
46 if (allowed_rounding_error(cos($ninety),0.0)) {
53 echo "cos 180 = ";
54 var_dump(cos($oneeighty));
55 if (allowed_rounding_error(cos($oneeighty),-1.0)) {
62 echo "cos 270 = ";
63 var_dump(cos($twoseventy));
64 if (allowed_rounding_error(cos($twoseventy),0.0)) {
71 echo "cos 360 = ";
72 var_dump(cos($threesixty));
73 if (allowed_rounding_error(cos($threesixty),1.0)) {
81 cos 30 = float(%f)
83 cos 60 = float(%f)
85 cos 90 = float(%f)
87 cos 180 = float(%f)
89 cos 270 = float(%f)
91 cos 360 = float(%f)