/external/flac/libFLAC/ |
window.c | 71 window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N-0.5f) - 0.38f * cos(2.0f * M_PI * ((float)n/(float)N))); 80 window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N)); 90 window[n] = (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f * cos(6.0f * M_PI * n / N)); 112 window[n] = (FLAC__real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.0f * M_PI * n / N) + 0.0322f * cos(8.0f * M_PI * n / N)) [all...] |
/external/skia/gm/ |
strokedlines.cpp | 25 SkScalar cos, sin; local 28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos); 30 cos *= kRadius / 2.0f; 34 p.lineTo(offset.fX + cos, offset.fY + sin); 38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos); 40 cos *= kRadius / 2.0f; 44 p.lineTo(offset.fX + cos, offset.fY + sin); 53 SkScalar sin, cos, angle = 0.0f; local 55 sin = SkScalarSinCos(angle, &cos); 57 cos *= kRadius [all...] |
/prebuilts/go/darwin-x86/src/math/ |
sincos.go | 9 // Sincos returns Sin(x), Cos(x). 15 func Sincos(x float64) (sin, cos float64) 17 func sincos(x float64) (sin, cos float64) { 57 cos = 1.0 - 0.5*zz + zz*zz*((((((_cos[0]*zz)+_cos[1])*zz+_cos[2])*zz+_cos[3])*zz+_cos[4])*zz+_cos[5]) 60 sin, cos = cos, sin 63 cos = -cos
|
j1.go | 34 // j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 35 // y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 36 // where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) 38 // cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4) 39 // = 1/sqrt(2) * (sin(x) - cos(x)) 40 // sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4) 41 // = -1/sqrt(2) * (sin(x) + cos(x) [all...] |
j0.go | 34 // j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0)) 35 // where x0 = x-pi/4. It is better to compute sin(x0),cos(x0) 37 // cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4) 38 // = 1/sqrt(2) * (cos(x) + sin(x)) 39 // sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4) 40 // = 1/sqrt(2) * (sin(x) - cos(x)) 42 // sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x) [all...] |
/prebuilts/go/linux-x86/src/math/ |
sincos.go | 9 // Sincos returns Sin(x), Cos(x). 15 func Sincos(x float64) (sin, cos float64) 17 func sincos(x float64) (sin, cos float64) { 57 cos = 1.0 - 0.5*zz + zz*zz*((((((_cos[0]*zz)+_cos[1])*zz+_cos[2])*zz+_cos[3])*zz+_cos[4])*zz+_cos[5]) 60 sin, cos = cos, sin 63 cos = -cos
|
j1.go | 34 // j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 35 // y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 36 // where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) 38 // cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4) 39 // = 1/sqrt(2) * (sin(x) - cos(x)) 40 // sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4) 41 // = -1/sqrt(2) * (sin(x) + cos(x) [all...] |
j0.go | 34 // j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0)) 35 // where x0 = x-pi/4. It is better to compute sin(x0),cos(x0) 37 // cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4) 38 // = 1/sqrt(2) * (cos(x) + sin(x)) 39 // sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4) 40 // = 1/sqrt(2) * (sin(x) - cos(x)) 42 // sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
RectShadowPainter.java | 99 ret[points][0] = (float) (left - radius + radius * Math.cos(RADIANS_STEP * i)); 100 ret[points][1] = (float) (bottom + radius - radius * Math.cos(RADIANS_STEP * i)); 106 ret[points][0] = (float) (left + radius - radius * Math.cos(RADIANS_STEP * i)); 107 ret[points][1] = (float) (top + radius - radius * Math.cos(RADIANS_STEP * i)); 113 ret[points][0] = (float) (right + radius - radius * Math.cos(RADIANS_STEP * i)); 114 ret[points][1] = (float) (top + radius + radius * Math.cos(RADIANS_STEP * i)); 120 ret[points][0] = (float) (right - radius + radius * Math.cos(RADIANS_STEP * i)); 121 ret[points][1] = (float) (bottom - radius + radius * Math.cos(RADIANS_STEP * i));
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/tic54x/ |
math.s | 10 .float $cos(0.0)
|
/bionic/libm/ |
sincos.c | 33 // -fno-builtin-sin or -fno-builtin-cos can disable sincos optimization, 40 *p_cos = cos(x);
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_ccosh.c | 31 * = 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)));
|
s_csinh.c | 31 * = 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)));
|
/external/eigen/unsupported/doc/examples/ |
MatrixSine.cpp | 14 MatrixXd cosA = A.cos(); 15 std::cout << "cos(A) = \n" << cosA << "\n\n"; 17 // The matrix functions satisfy sin^2(A) + cos^2(A) = I, 19 std::cout << "sin^2(A) + cos^2(A) = \n" << sinA*sinA + cosA*cosA << "\n\n";
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
CipherOutputStreamTest.java | 109 CipherOutputStream cos = new CipherOutputStream(os, cipher); local 110 cos.write(t.pt); 111 cos.close(); 123 CipherOutputStream cos = new CipherOutputStream(os, cipher); local 124 cos.write(t.ct); 125 cos.close(); 139 CipherOutputStream cos = new CipherOutputStream(os, cipher); local 140 cos.write(ct); 142 // cos.close() should call cipher.doFinal(). 143 cos.close() 170 CipherOutputStream cos = new CipherOutputStream(os, cipher); local [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
s_cos.c | 18 /* cos(x)
27 * Let S,C and T denote the sin, cos and tan respectively on
32 * n sin(x) cos(x) tan(x)
41 * Let trig be any of sin, cos, or tan.
53 cos(double x)
function 65 /* cos(Inf or NaN) is NaN */
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
ComplexUtils.java | 43 * computed as <code>r·cos(theta) + r·sin(theta)i</code></p> 69 return new Complex(r * FastMath.cos(theta), r * FastMath.sin(theta));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/ |
HarmonicFunction.java | 23 /** Harmonic function of the form <code>f (t) = a cos (ω t + φ)</code>. 51 return a * FastMath.cos(omega * x + phi);
|
/external/libvorbis/test/ |
util.c | 41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
|
/external/ltp/testcases/kernel/fs/fs-bench/ |
boxmuler.c | 21 z = sqrt(-2.0 * log(u1)) * cos(M_2PI * u2);
|
/frameworks/base/core/java/android/view/animation/ |
AccelerateDecelerateInterpolator.java | 41 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
|
/prebuilts/ndk/r10/sources/cxx-stl/stlport/stlport/stl/config/ |
_como.h | 87 # define cosl cos 115 # define cosf cos 116 # define cosl cos 161 # define cosl cos
|
/prebuilts/ndk/r11/sources/cxx-stl/stlport/src/ |
complex_trig.cpp | 70 ::cos(z._M_re) * ::sinh(z._M_im)); 85 // cos 88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im), 92 _STLP_DECLSPEC complex<float> _STLP_CALL cos(const complex<float>& z) function 95 _STLP_DECLSPEC complex<double> _STLP_CALL cos(const complex<double>& z) function 99 _STLP_DECLSPEC complex<long double> _STLP_CALL cos(const complex<long double>& z) function 113 _Tp den = ::cos(re2) + ::cosh(im2); 133 return complex<_Tp>(::sinh(z._M_re) * ::cos(z._M_im), 152 return complex<_Tp>(::cosh(z._M_re) * ::cos(z._M_im), 176 _Tp den = ::cosh(re2) + ::cos(im2) [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/stlport/stlport/stl/config/ |
_como.h | 87 # define cosl cos 115 # define cosf cos 116 # define cosl cos 161 # define cosl cos
|
/prebuilts/ndk/r13/sources/cxx-stl/stlport/src/ |
complex_trig.cpp | 70 ::cos(z._M_re) * ::sinh(z._M_im)); 85 // cos 88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im), 92 _STLP_DECLSPEC complex<float> _STLP_CALL cos(const complex<float>& z) function 95 _STLP_DECLSPEC complex<double> _STLP_CALL cos(const complex<double>& z) function 99 _STLP_DECLSPEC complex<long double> _STLP_CALL cos(const complex<long double>& z) function 113 _Tp den = ::cos(re2) + ::cosh(im2); 133 return complex<_Tp>(::sinh(z._M_re) * ::cos(z._M_im), 152 return complex<_Tp>(::cosh(z._M_re) * ::cos(z._M_im), 176 _Tp den = ::cosh(re2) + ::cos(im2) [all...] |