Home | History | Annotate | Download | only in ceres

Lines Matching refs:cos

109   { // Check that cos(2*x) = cos(x)^2 - sin(x)^2
110 J z = cos(J(2.0) * x);
111 J w = cos(x)*cos(x) - sin(x)*sin(x);
117 { // Check that sin(2*x) = 2*cos(x)*sin(x)
119 J w = J(2.0)*cos(x)*sin(x);
125 { // Check that cos(x)*cos(x) + sin(x)*sin(x) = 1
126 J z = cos(x) * cos(x);
133 { // Check that atan2(r*sin(t), r*cos(t)) = t.
139 J u = atan2(r * sin(t), r * cos(t));
145 { // Check that tan(x) = sin(x) / cos(x).
147 J w = sin(x) / cos(x);
281 { // Check that cos(acos(x)) == x.
283 ExpectJetsClose(cos(acos(a)), a);
284 ExpectJetsClose(acos(cos(a)), a);
287 ExpectJetsClose(cos(acos(b)), b);
288 ExpectJetsClose(acos(cos(b)), b);