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

123

/freebsd-13-stable/lib/msun/i387/
H A Ds_cos.S39 ENTRY(cos)
56 END(cos)
/freebsd-13-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.c33 * = cosh(x) cos(y) + i sinh(x) sin(y).
71 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)));
77 return (CMPLX(h * cos(y), copysign(h, x) * sin(y)));
85 return (CMPLX(h * h * cos(y), h * sin(y)));
130 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y)
135 return (CMPLX(INFINITY * cos(y), x * sin(y)));
H A Ds_csinh.c33 * = sinh(x) cos(y) + i cosh(x) sin(y).
71 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)));
77 return (CMPLX(copysign(h, x) * cos(y), h * sin(y)));
85 return (CMPLX(h * cos(y), h * h * sin(y)));
129 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y)
134 return (CMPLX(x * cos(y), INFINITY * sin(y)));
H A Ds_cexp.c57 /* cexp(0 + I y) = cos(y) + I sin(y) */
59 return (CMPLX(cos(y), sin(y)));
89 return (CMPLX(exp_x * cos(y), exp_x * sin(y)));
H A Ds_ctanh.c41 * beta = 1/cos^2(y)
49 * sinh(x) cos(y) + I cosh(x) sin(y)
51 * cosh(x) cos(y) + I sinh(x) sin(y)
53 * cosh(x) sinh(x) / cos^2(y) + I tan(y)
55 * 1 + sinh^2(x) / cos^2(y)
110 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))));
130 4 * sin(y) * cos(y) * exp_mx * exp_mx));
135 beta = 1.0 + t * t; /* = 1 / cos^2(y) */
H A Ds_cpow.c73 w = CMPLX(r * cos (theta), r * sin (theta));
H A De_j0.c25 * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0))
26 * where x0 = x-pi/4. It is better to compute sin(x0),cos(x0)
28 * cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4)
29 * = 1/sqrt(2) * (cos(x) + sin(x))
30 * sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4)
31 * = 1/sqrt(2) * (sin(x) - cos(x))
33 * sin(x) +- cos(
[all...]
H A De_j1.c25 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1))
26 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1))
27 * where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1)
29 * cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4)
30 * = 1/sqrt(2) * (sin(x) - cos(x))
31 * sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4)
32 * = -1/sqrt(2) * (sin(x) + cos(
[all...]
/freebsd-13-stable/lib/msun/tests/
H A Dtrig_test.c87 "test special cases in sin(), cos(), and tan()");
95 testall(cos, 0.0, 1.0, ALL_STD_EXCEPT, 0);
96 testall(cos, -0.0, 1.0, ALL_STD_EXCEPT, 0);
103 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
106 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID);
111 testall(cos, NAN, NAN, ALL_STD_EXCEPT, 0);
186 ATF_CHECK(cos(d_pi_odd[i]) == -1.0);
190 ATF_CHECK(cos(-d_pi_odd[i]) == -1.0);
194 ATF_CHECK(cos(d_pi_odd[i] * 2) == 1.0);
198 ATF_CHECK(cos(
[all...]
H A Dcexp_test.c161 /* cexp(-inf + yi) = 0 * (cos(y) + sin(y)i) */
175 /* cexp(inf + yi) = inf * (cos(y) + sin(y)i) (except y=0) */
221 CMPLXL(cos(finites[i]), sin(finites[i])),
224 CMPLXL(cos(finites[i]), sin(finites[i])),
H A Dctrig_test.c322 copysign(0, cos(nums[i]))), DBL_ULP());
323 test_even_tol(ccos, z, CMPLXL(cos(nums[i]),
342 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])),
344 test_even_tol(ccosh, z, CMPLXL(cos(nums[i]),
/freebsd-13-stable/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk137 b1 = -2.0 * cos(w0);
140 a1 = -2.0 * cos(w0);
143 b0 = A*((A+1.0)+((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha));
144 b1 = -2.0*A*((A-1.0)+((A+1.0)*cos(w0)) );
145 b2 = A*((A+1.0)+((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha));
146 a0 = (A+1.0)-((A-1.0)*cos(w0))+(2.0*sqrt(A)*alpha );
147 a1 = 2.0 * ((A-1.0)-((A+1.0)*cos(w0)) );
148 a2 = (A+1.0)-((A-1.0)*cos(w0))-(2.0*sqrt(A)*alpha );
171 b1 = -2.0 * cos(w0);
174 a1 = -2.0 * cos(w
[all...]
H A Dfeeder_rate_mkfilter.awk268 w = 0.36335819 + (0.4891775 * cos(x)) + \
269 (0.1365995 * cos(2 * x)) + \
270 (0.0106411 * cos(3 * x));
273 w = 0.355768 + (0.487396 * cos(x)) + \
274 (0.144232 * cos(2 * x)) + \
275 (0.012604 * cos(3 * x));
278 w = 0.422323 + (0.49755 * cos(x)) + \
279 (0.07922 * cos(2 * x));
282 w = 0.42 + (0.50 * cos(x)) + \
283 (0.08 * cos(
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_fpu.c81 x = sin ((y = cos (x + y + .4)) - (z = cos (x + z + .6)));
/freebsd-13-stable/sys/dev/bxe/
H A Decore_init.h239 #define ECORE_VOQ_Q_REG_ADDR(cos, pf_q_num)\
240 (QM_REG_VOQQMASK_0_LSB + 4 * ((cos) * 2 + ((pf_q_num) >> 5)))
308 traffic_cos[LLFC_TRAFFIC_TYPE_FCOE].cos);
310 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos);
312 traffic_cos[LLFC_TRAFFIC_TYPE_ISCSI].cos);
316 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
318 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
320 traffic_cos[LLFC_TRAFFIC_TYPE_NW].cos);
495 uint32_t vnic, cos; local
500 for (cos
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libm/
H A Dt_cos.c89 atf_tc_fail_nonfatal("cos(%d deg = %.17Lg) = %.17Lg"
165 * cos(3)
184 if (!(fabs((cos(theta) - cos_theta)/cos_theta) <= eps)) {
185 atf_tc_fail_nonfatal("cos(%d deg = %.17g) = %.17g"
187 deg, theta, cos(theta), cos_theta);
195 atf_tc_set_md_var(tc, "descr", "Test cos(NaN) == NaN");
203 ATF_CHECK(isnan(cos(x)) != 0);
209 atf_tc_set_md_var(tc, "descr", "Test cos(-Inf) == NaN");
216 ATF_CHECK(isnan(cos(x)) != 0);
222 atf_tc_set_md_var(tc, "descr", "Test cos(
[all...]
/freebsd-13-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-13-stable/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h51 __DEVICE__ double cos(double);
52 __DEVICE__ float cos(float);
208 using ::cos;
H A D__clang_cuda_cmath.h50 __DEVICE__ float cos(float __x) { return ::cosf(__x); } function
209 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, cos)
336 using ::cos;
/freebsd-13-stable/usr.bin/calendar/
H A Dsunpos.c51 #define COS(x) (cos(D2R(x)))
129 int lcsign = cos(D2R(lambda)) < 0 ? -1 : 1;
131 || ((cos(D2R(alpha)) < 0) ? -1 : 1) != lcsign)
/freebsd-13-stable/usr.bin/pom/
H A Dpom.c217 return(50 * (1 - cos(dtor(D)))); /* sec 63 #3 */
/freebsd-13-stable/lib/msun/
H A DMakefile157 cimag.3 clog.3 copysign.3 cos.3 cosh.3 cpow.3 csqrt.3 erf.3 \
193 MLINKS+=cos.3 cosf.3 cos.3 cosl.3
/freebsd-13-stable/tools/regression/include/tgmath/
H A Dtgmath.c84 TGMACRO(cos)
433 PRINT("cos",
434 PASS_REAL_ARG_REAL_RET(cos) &&
435 PASS_COMPLEX_ARG_COMPLEX_RET(cos));
/freebsd-13-stable/include/
H A Dtgmath.h149 #define cos(x) __tg_full(x, cos) macro

Completed in 164 milliseconds

123