Lines Matching defs:cos
273 * kernel cos function on [-pi/4, pi/4], pi/4 ~ 0.785398164
278 * 1. Since cos(-x) = cos(x), we need only to consider positive x.
280 * 3. cos(x) is approximated by a polynomial of degree 14 on
283 * cos(x) ~ 1 - x*x/2 + C1*x + ... + C6*x
287 * |cos(x)-(1-.5*x +C1*x +C2*x +C3*x +C4*x +C5*x +C6*x )| <= 2
292 * cos(x) = 1 - x*x/2 + r
293 * since cos(x+y) ~ cos(x) - sin(x)*y
294 * ~ cos(x) - x*y,
295 * a correction term is necessary in cos(x) and hence
296 * cos(x+y) = 1 - (x*x/2 - (r - x*y))
300 * cos(x+y) = (1-qx) - ((x*x/2-qx) - (r-x*y)).
1321 /* cos(x)
1330 * Let S,C and T denote the sin, cos and tan respectively on
1335 * n sin(x) cos(x) tan(x)
1344 * Let trig be any of sin, cos, or tan.
1351 double cos(double x) {
1363 /* cos(Inf or NaN) is NaN */
2422 * Let S,C and T denote the sin, cos and tan respectively on
2427 * n sin(x) cos(x) tan(x)
2436 * Let trig be any of sin, cos, or tan.
2481 * Let S,C and T denote the sin, cos and tan respectively on
2486 * n sin(x) cos(x) tan(x)
2495 * Let trig be any of sin, cos, or tan.