/haiku/src/system/libroot/posix/musl/math/ |
H A D | sincos.c | 16 void sincos(double x, double *sin, double *cos) argument 32 *cos = 1.0; 36 *cos = __cos(x, 0.0); 42 *sin = *cos = x - x; 53 *cos = c; 57 *cos = -s; 61 *cos = -c; 66 *cos = s;
|
H A D | sincosf.c | 27 void sincosf(float x, float *sin, float *cos) argument 45 *cos = 1.0f; 49 *cos = __cosdf(x); 58 *cos = __sindf(x + s1pio2); 61 *cos = __sindf(s1pio2 - x); 67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); 76 *cos = -__sindf(x + s3pio2); 79 *cos = __sindf(x - s3pio2); 84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); 90 *sin = *cos [all...] |
H A D | sincosl.c | 5 void sincosl(long double x, long double *sin, long double *cos) argument 10 *cos = cosd; 13 void sincosl(long double x, long double *sin, long double *cos) argument 21 *sin = *cos = x - x; 30 *cos = 1.0 + x; 34 *cos = __cosl(x, 0); 43 *cos = c; 47 *cos = -s; 51 *cos = -c; 56 *cos [all...] |
H A D | cos.c | 12 /* cos(x) 21 * Let S,C and T denote the sin, cos and tan respectively on 26 * n sin(x) cos(x) tan(x) 35 * Let trig be any of sin, cos, or tan. 45 double cos(double x) function 64 /* cos(Inf or NaN) is NaN */
|
H A D | jn.c | 77 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 79 * Let s=sin(x), c=cos(x), 82 * n sin(xn)*sqt2 cos(xn)*sqt2 90 case 0: temp = -cos(x)+sin(x); break; 91 case 1: temp = -cos(x)-sin(x); break; 92 case 2: temp = cos(x)-sin(x); break; 94 case 3: temp = cos(x)+sin(x); break; 246 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 248 * Let s=sin(x), c=cos(x), 251 * n sin(xn)*sqt2 cos(x [all...] |
H A D | cosl.c | 5 return cos(x);
|
/haiku/headers/compatibility/gnu/ |
H A D | math.h | 20 void sincos(double x, double *sin, double *cos); 21 void sincosf(float x, float *sin, float *cos); 22 void sincosl(long double x, long double *sin, long double *cos);
|
/haiku/src/tests/kits/opengl/demos/gears/ |
H A D | gears.c | 71 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 72 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 74 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 75 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); 86 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 87 glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); 88 glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); 89 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); 99 glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); 100 glVertex3f(r0 * cos(angl [all...] |
/haiku/src/system/libroot/posix/glibc/math/ |
H A D | math.h | 48 extern void sincos(double x, double *sin, double *cos); 49 extern void sincosf(float x, float *sin, float *cos); 50 extern void sincosl(long double x, long double *sin, long double *cos);
|
/haiku/src/add-ons/screen_savers/flurry/ |
H A D | Star.cpp | 81 cf = ((float)(cos(7.0 * ((info->fTime) * rotationsPerSecond)) 82 + cos(3.0 * ((info->fTime) * rotationsPerSecond)) 83 + cos(13.0 * ((info->fTime) * rotationsPerSecond)))); 88 s->position[0] = 250.0f * cf * (float)cos(11.0 * (thisPointInRadians 92 s->position[2] = 250.0f * (float)cos((23.0 * (thisPointInRadians 97 cr = cos(rotation); 113 cr = cos(rotation);
|
H A D | Spark.cpp | 153 * ((float)cos((colorTime + redPhaseShift) * colorRot) + 1.0f); 155 * ((float)cos((colorTime + greenPhaseShift) * colorRot) + 1.0f); 157 * ((float)cos((colorTime + bluePhaseShift) * colorRot) + 1.0f); 160 cf = ((float)(cos(7.0 * ((info->fTime) * rotationsPerSecond)) 161 + cos(3.0 * ((info->fTime) * rotationsPerSecond)) 162 + cos(13.0 * ((info->fTime) * rotationsPerSecond)))); 168 * (0.5f + (float)cos((15.0 * (thisPointInRadians + 3.0*thisAngle))) 173 * (0.5f + (float)cos((37.0 * (thisPointInRadians + thisAngle)))); 236 * ((float)cos((colorTime + redPhaseShift) * colorRot) + 1.0f); 238 * ((float)cos((colorTim [all...] |
H A D | Texture.cpp | 107 float t = 255.0f * (float) cos(r * M_PI / 31.0); 121 t = 255.0f * (float) cos(r*M_PI/31.0);
|
/haiku/src/apps/haiku3d/ |
H A D | MathUtils.cpp | 60 return -distance / 2 * (cos(3.14159 * time / distance) - 1) + start;
|
H A D | Quaternion.h | 110 cos(angle * 0.5f)); 119 float cosYaw = cos(halfYaw); 121 float cosPitch = cos(halfPitch); 123 float cosRoll = cos(halfRoll);
|
/haiku/src/libs/agg/src/ |
H A D | agg_arc.cpp | 70 *x = m_x + cos(m_end) * m_rx; 76 *x = m_x + cos(m_angle) * m_rx;
|
H A D | agg_bezier_arc.cpp | 42 double x0 = cos(sweep_angle / 2.0); 58 double cs = cos(start_angle + sweep_angle / 2.0); 84 m_vertices[0] = x + rx * cos(start_angle); 86 m_vertices[2] = x + rx * cos(start_angle + sweep_angle); 155 double cos_a = cos(angle);
|
/haiku/src/add-ons/screen_savers/simpleclock/ |
H A D | SimpleClock.cpp | 107 float x = centerX + markRadius * cos(markAngle); 118 float x = centerX + markRadius * cos(markAngle); 153 blockPoints[index].x = x + size * cos(blockAngles[index]); 166 float x = x0 + length * cos(angle); 176 blockPoints[index].x = x + size * cos(blockAngles[index]);
|
/haiku/src/add-ons/screen_savers/nebula/ |
H A D | Nebula.cpp | 120 (*m)[0][0] = cos(a); (*m)[0][1] = sin(a); 121 (*m)[1][0] = sin(a); (*m)[1][1] = -cos(a); 125 (*m)[0][0] = cos(b); (*m)[0][2] = sin(b); 126 (*m)[2][0] = sin(b); (*m)[2][2] = -cos(b); 129 (*m)[1][1] = cos(c); (*m)[1][2] = sin(c); 130 (*m)[2][1] = sin(c); (*m)[2][2] = -cos(c); 344 uint8 c = (uint8)((cos((i - 256) / 42.0) * 0.5 + 0.5) * 225); 388 uint8 c = (uint8)((cos((i - 255) / 82.0) * 0.5 + 0.5) * 255); 723 precos[i]=cos(i * M_PI / 256); 750 gal[i].x = (int)(512 * r * cos(t [all...] |
/haiku/headers/cpp/std/ |
H A D | complext.cc | 32 cos (const complex<FLOAT>& x) function 34 return complex<FLOAT> (cos (real (x)) * cosh (imag (x)), 41 return complex<FLOAT> (cosh (real (x)) * cos (imag (x)), 83 cos (real (x)) * sinh (imag (x))); 89 return complex<FLOAT> (sinh (real (x)) * cos (imag (x)),
|
/haiku/src/tests/system/libroot/posix/math/ |
H A D | math_test.cpp | 39 assert(get_image_symbol(libroot, "cos", B_SYMBOL_TYPE_TEXT, (void**)&be_cos) == B_OK); 50 double y = cos(f); 76 // test cos 79 double x = cos(f);
|
/haiku/headers/libs/agg/ |
H A D | agg_ellipse.h | 111 *x = m_x + cos(angle) * m_rx;
|
H A D | agg_image_filters.h | 129 return 0.5 + 0.5 * cos(pi * x); 140 return 0.54 + 0.46 * cos(pi * x); 367 return (sin(x) / x) * (0.42 + 0.5*cos(xr) + 0.08*cos(2*xr));
|
H A D | agg_trans_affine.h | 337 double ca = std::cos(a); 412 // Rotation matrix. sin() and cos() are calculated twice for the same angle. 413 // There's no harm because the performance of sin()/cos() is very good on all 420 trans_affine(std::cos(a), std::sin(a), -std::sin(a), std::cos(a), 0.0, 0.0) 505 trans_affine_reflection_unit(std::cos(a), std::sin(a))
|
/haiku/src/apps/clock/ |
H A D | cl_view.cpp | 80 x = mRadius * cos(((360 - counter)/180.0) * 3.1415); 85 x = hRadius * cos(((360 - counter)/180.0) * 3.1415); 93 x = mRadius * cos(((360 - counter)/180.0) * 3.1415); 98 x = hRadius * cos(((360 - counter)/180.0) * 3.1415);
|
/haiku/src/apps/glteapot/ |
H A D | Quaternion.h | 103 cos(angle * 0.5f));
112 float cosYaw = cos(halfYaw);
114 float cosPitch = cos(halfPitch);
116 float cosRoll = cos(halfRoll);
|