Searched refs:cos (Results 1 - 25 of 73) sorted by relevance

123

/freebsd-10-stable/lib/msun/i387/
H A Ds_cos.S39 ENTRY(cos) function
56 END(cos)
/freebsd-10-stable/lib/msun/src/
H A Ds_cos.c16 /* cos(x)
25 * Let S,C and T denote the sin, cos and tan respectively on
30 * n sin(x) cos(x) tan(x)
39 * Let trig be any of sin, cos, or tan.
55 cos(double x) function
71 /* cos(Inf or NaN) is NaN */
88 __weak_reference(cos, cosl);
H A Ds_ccosh.c31 * = cosh(x) cos(y) + i sinh(x) sin(y).
69 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)));
75 return (CMPLX(h * cos(y), copysign(h, x) * sin(y)));
83 return (CMPLX(h * h * cos(y), h * sin(y)));
128 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y)
133 return (CMPLX(INFINITY * cos(y), x * sin(y)));
H A Ds_csinh.c31 * = sinh(x) cos(y) + i cosh(x) sin(y).
69 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)));
75 return (CMPLX(copysign(h, x) * cos(y), h * sin(y)));
83 return (CMPLX(h * cos(y), h * h * sin(y)));
127 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y)
132 return (CMPLX(x * cos(y), INFINITY * sin(y)));
H A De_jn.c84 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi)
86 * Let s=sin(x), c=cos(x),
89 * n sin(xn)*sqt2 cos(xn)*sqt2
97 case 0: temp = cos(x)+sin(x); break;
98 case 1: temp = -cos(x)+sin(x); break;
99 case 2: temp = -cos(x)-sin(x); break;
100 case 3: temp = cos(x)-sin(x); break;
241 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi)
243 * Let s=sin(x), c=cos(x),
246 * n sin(xn)*sqt2 cos(x
[all...]
H A Ds_cexp.c55 /* cexp(0 + I y) = cos(y) + I sin(y) */
57 return (CMPLX(cos(y), sin(y)));
87 return (CMPLX(exp_x * cos(y), exp_x * sin(y)));
H A Ds_ctanh.c39 * beta = 1/cos^2(y)
47 * sinh(x) cos(y) + I cosh(x) sin(y)
49 * cosh(x) cos(y) + I sinh(x) sin(y)
51 * cosh(x) sinh(x) / cos^2(y) + I tan(y)
53 * 1 + sinh^2(x) / cos^2(y)
108 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))));
126 4 * sin(y) * cos(y) * exp_mx * exp_mx));
131 beta = 1.0 + t * t; /* = 1 / cos^2(y) */
H A Dk_exp.c106 return (CMPLX(cos(y) * exp_x * scale1 * scale2,
H A De_j1.c26 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1))
27 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1))
28 * where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1)
30 * cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4)
31 * = 1/sqrt(2) * (sin(x) - cos(x))
32 * sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4)
33 * = -1/sqrt(2) * (sin(x) + cos(
[all...]
H A De_j0.c26 * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0))
27 * where x0 = x-pi/4. It is better to compute sin(x0),cos(x0)
29 * cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4)
30 * = 1/sqrt(2) * (cos(x) + sin(x))
31 * sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4)
32 * = 1/sqrt(2) * (sin(x) - cos(x))
34 * sin(x) +- cos(
[all...]
/freebsd-10-stable/lib/msun/tests/
H A Dtrig_test.c83 * Test special cases in sin(), cos(), and tan().
92 testall(cos, 0.0, 1.0, ALL_STD_EXCEPT, 0);
93 testall(cos, -0.0, 1.0, ALL_STD_EXCEPT, 0);
100 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
103 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
108 testall(cos, NAN, NAN, ALL_STD_EXCEPT, 0);
178 assert(cos(d_pi_odd[i]) == -1.0);
182 assert(cos(-d_pi_odd[i]) == -1.0);
186 assert(cos(d_pi_odd[i] * 2) == 1.0);
190 assert(cos(
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/
H A Dt_cos.c58 * cos(3)
73 if (fabs(cos(angles[i].x) - angles[i].y) > eps)
74 atf_tc_fail_nonfatal("cos(%d deg) != %0.01f",
82 atf_tc_set_md_var(tc, "descr", "Test cos(NaN) == NaN");
90 ATF_CHECK(isnan(cos(x)) != 0);
96 atf_tc_set_md_var(tc, "descr", "Test cos(-Inf) == NaN");
103 ATF_CHECK(isnan(cos(x)) != 0);
109 atf_tc_set_md_var(tc, "descr", "Test cos(+Inf) == NaN");
116 ATF_CHECK(isnan(cos(x)) != 0);
123 atf_tc_set_md_var(tc, "descr", "Test cos(
[all...]
/freebsd-10-stable/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk135 b1 = -2.0 * cos(w0);
138 a1 = -2.0 * cos(w0);
141 b0 = A*((A+1.0)+((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha));
142 b1 = -2.0*A*((A-1.0)+((A+1.0)*cos(w0)) );
143 b2 = A*((A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha));
144 a0 = (A+1.0)-((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha );
145 a1 = 2.0 * ((A-1.0)-((A+1.0)*cos(w0)) );
146 a2 = (A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha );
169 b1 = -2.0 * cos(w0);
172 a1 = -2.0 * cos(w
[all...]
H A Dfeeder_rate_mkfilter.awk266 w = 0.36335819 + (0.4891775 * cos(x)) + \
267 (0.1365995 * cos(2 * x)) + \
268 (0.0106411 * cos(3 * x));
271 w = 0.355768 + (0.487396 * cos(x)) + \
272 (0.144232 * cos(2 * x)) + \
273 (0.012604 * cos(3 * x));
276 w = 0.422323 + (0.49755 * cos(x)) + \
277 (0.07922 * cos(2 * x));
280 w = 0.42 + (0.50 * cos(x)) + \
281 (0.08 * cos(
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_fpu.c81 x = sin ((y = cos (x + y + .4)) - (z = cos (x + z + .6)));
/freebsd-10-stable/sys/dev/bxe/
H A Decore_init.h237 #define ECORE_VOQ_Q_REG_ADDR(cos, pf_q_num)\
238 (QM_REG_VOQQMASK_0_LSB + 4 * ((cos) * 2 + ((pf_q_num) >> 5)))
306 traffic_cos[LLFC_TRAFFIC_TYPE_FCOE].cos);
308 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos);
310 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos);
314 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
316 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
318 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
493 uint32_t vnic, cos; local
498 for (cos
[all...]
/freebsd-10-stable/contrib/libstdc++/include/c_compatibility/
H A Dmath.h40 using std::cos;
/freebsd-10-stable/contrib/ntp/clockstuff/
H A Dpropdelay.c59 extern double cos (double);
391 (cos(l1r) * cos(l2r) * cos((long2-long1)*RADPERDEG))
540 k2 = SATHEIGHT - (EARTHRADIUS * cos(theta));
/freebsd-10-stable/contrib/libstdc++/libmath/
H A Dstubs.c143 return (float) cos(x);
151 return cos((double) x);
/freebsd-10-stable/contrib/libstdc++/include/c/
H A Dstd_cmath.h51 #undef cos macro
/freebsd-10-stable/contrib/groff/src/preproc/pic/
H A Dcommon.cpp78 dot(cent + position(cos(ang), sin(ang))*rad, lt);
94 position zm = position(dim.x * cos(psi), dim.y * sin(psi));
110 position M0 = position(rho * cos(phi0), rho * sin(phi0)) + M;
111 position M1 = position(rho * cos(phi1), rho * sin(phi1)) + M;
164 z = position(dim_x * cos(phi), dim_y * sin(phi));
175 zdot = position(dim_x * cos(psi), dim_y * sin(psi));
216 z = position(dim_x * cos(phi), dim_y * sin(phi));
227 zdot = position(dim_x * cos(psi), dim_y * sin(psi));
303 dot(cent + position(cos(a), sin(a))*rad, lt);
314 arc(cent + position(cos(start_angl
[all...]
/freebsd-10-stable/contrib/libstdc++/include/tr1/
H A Dmath.h51 using std::tr1::cos;
/freebsd-10-stable/contrib/gcc/
H A Dfp-test.c48 extern double cos (double);
232 d1 = cos (d2);
/freebsd-10-stable/contrib/libstdc++/include/c_std/
H A Dstd_cmath.h64 #undef cos macro
181 using ::cos;
184 cos(float __x) function
188 cos(long double __x) function
194 cos(_Tp __x) function
/freebsd-10-stable/usr.bin/calendar/
H A Dsunpos.c49 #define COS(x) (cos(D2R(x)))
127 int lcsign = cos(D2R(lambda)) < 0 ? -1 : 1;
129 || ((cos(D2R(alpha)) < 0) ? -1 : 1) != lcsign)

Completed in 118 milliseconds

123