Lines Matching refs:cos
2 Test return type and value for expected input cos()
25 echo "cos 30 = ";
26 var_dump(cos($thirty));
27 if (allowed_rounding_error(cos($thirty),0.86602540378444)) {
34 echo "cos 60 = ";
35 var_dump(cos($sixty));
36 if (allowed_rounding_error(cos($sixty),0.5)) {
43 echo "cos 90 = ";
44 var_dump(cos($ninety));
45 if (allowed_rounding_error(cos($ninety),0.0)) {
52 echo "cos 180 = ";
53 var_dump(cos($oneeighty));
54 if (allowed_rounding_error(cos($oneeighty),-1.0)) {
61 echo "cos 270 = ";
62 var_dump(cos($twoseventy));
63 if (allowed_rounding_error(cos($twoseventy),0.0)) {
70 echo "cos 360 = ";
71 var_dump(cos($threesixty));
72 if (allowed_rounding_error(cos($threesixty),1.0)) {
80 cos 30 = float(%f)
82 cos 60 = float(%f)
84 cos 90 = float(%f)
86 cos 180 = float(%f)
88 cos 270 = float(%f)
90 cos 360 = float(%f)