/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestCos.rs | 24 return cos(in); 28 return cos(in); 32 return cos(in); 36 return cos(in);
|
/external/eigen/doc/snippets/ |
Cwise_cos.cpp | 2 cout << v.cos() << endl;
|
Tutorial_AdvancedInitialization_LinSpaced.cpp | 5 table.col(3) = table.col(1).cos();
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
CipherOutputStreamTest.java | 57 CipherOutputStream cos = new CipherOutputStream(tos); local 58 cos.write(data); 59 cos.flush(); 73 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); local 75 cos.write(data[i]); 77 cos.flush(); 91 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); local 92 cos.write(data); 93 cos.flush(); 106 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()) local 149 CipherOutputStream cos = new CipherOutputStream(tos); local 165 CipherOutputStream cos = new CipherOutputStream(tos); local [all...] |
/external/eigen/unsupported/doc/examples/ |
MatrixPower.cpp | 10 A << cos(1), -sin(1), 0, 11 sin(1), cos(1), 0,
|
MatrixSquareRoot.cpp | 11 A << cos(pi/3), -sin(pi/3), 12 sin(pi/3), cos(pi/3);
|
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";
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
Layer.java | 53 float cos = (float)Math.cos(angle); local 58 m[1][1] = cos; 61 m[2][2] = cos; 66 m[0][0] = cos; 69 m[2][2] = cos; 74 m[0][0] = cos; 77 m[1][1] = cos;
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
StemFunction.h | 30 static Scalar cos(Scalar x, int n) function in class:Eigen::StdStemFunctions 35 res = std::cos(x); 41 res = -std::cos(x); 59 res = std::cos(x); 65 res = -std::cos(x);
|
/external/flac/libFLAC/ |
window.c | 74 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+0.5f))); 83 window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N)); 93 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)); 115 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...] |
/cts/tests/tests/util/src/android/util/cts/ |
FloatMathTest.java | 36 // cos 37 assertEquals(0.964966f, FloatMath.cos(50)); 38 assertEquals(0.69925081f, FloatMath.cos(150)); 39 assertEquals(0.964966f, FloatMath.cos(-50));
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_cos.c | 16 /* 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);
|
s_ccosh.c | 31 * = cosh(x) cos(y) + i sinh(x) sin(y). 67 return (cpack(cosh(x) * cos(y), sinh(x) * sin(y))); 73 return (cpack(h * cos(y), copysign(h, x) * sin(y))); 81 return (cpack(h * h * cos(y), h * sin(y))); 127 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) 132 return (cpack((x * x) * cos(y), x * sin(y)));
|
s_csinh.c | 31 * = sinh(x) cos(y) + i cosh(x) sin(y). 67 return (cpack(sinh(x) * cos(y), cosh(x) * sin(y))); 73 return (cpack(copysign(h, x) * cos(y), h * sin(y))); 81 return (cpack(h * cos(y), h * h * sin(y))); 128 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) 133 return (cpack(x * cos(y), INFINITY * sin(y)));
|
e_jn.c | 82 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 84 * Let s=sin(x), c=cos(x), 87 * n sin(xn)*sqt2 cos(xn)*sqt2 95 case 0: temp = cos(x)+sin(x); break; 96 case 1: temp = -cos(x)+sin(x); break; 97 case 2: temp = -cos(x)-sin(x); break; 98 case 3: temp = cos(x)-sin(x); break; 237 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 239 * Let s=sin(x), c=cos(x), 242 * n sin(xn)*sqt2 cos(xn)*sqt [all...] |
/external/chromium_org/v8/test/mjsunit/ |
sin-cos.js | 28 // Test Math.sin and Math.cos. 33 assertEquals(1, Math.cos(-0)); 38 return Math.sin(x) + Math.cos(x) + Math.tan(x); 54 assertEquals(1, Math.cos(0)); 55 assertEquals(-1, Math.cos(Math.PI)); 64 assertTrue(Math.sin(x) != Math.cos(x)); 99 function cos(x) { function 137 var err_cos = abs_error(Math.cos, cos, x) 155 assertEquals(-1, Math.cos({ valueOf: function() { return Math.PI; } })) [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
Complex.h | 41 return Complex(magnitude * cos(phase), magnitude * sin(phase));
|
/external/chromium_org/third_party/skia/experimental/SkV8Example/ |
sample.js | 9 context.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
|
speed.js | 9 canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
|
/bionic/libm/ |
sincos.c | 33 // -fno-builtin-sin or -fno-builtin-cos can disable sincos optimization, 40 *p_cos = cos(x);
|
/external/ceres-solver/internal/ceres/ |
jet_test.cc | 109 { // Check that cos(2*x) = cos(x)^2 - sin(x)^2 110 J z = cos(J(2.0) * x); 111 J w = cos(x)*cos(x) - sin(x)*sin(x); 117 { // Check that sin(2*x) = 2*cos(x)*sin(x) 119 J w = J(2.0)*cos(x)*sin(x); 125 { // Check that cos(x)*cos(x) + sin(x)*sin(x) = 1 126 J z = cos(x) * cos(x) [all...] |
/external/libvorbis/test/ |
util.c | 41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
|
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 217 float cos = (float) Math.cos((double) value); local 220 mat.set(0, 0, (float) (.299 + .701 * cos + .168 * sin)); 221 mat.set(1, 0, (float) (.587 - .587 * cos + .330 * sin)); 222 mat.set(2, 0, (float) (.114 - .114 * cos - .497 * sin)); 223 mat.set(0, 1, (float) (.299 - .299 * cos - .328 * sin)); 224 mat.set(1, 1, (float) (.587 + .413 * cos + .035 * sin)); 225 mat.set(2, 1, (float) (.114 - .114 * cos + .292 * sin)); 226 mat.set(0, 2, (float) (.299 - .3 * cos + 1.25 * sin)); 227 mat.set(1, 2, (float) (.587 - .588 * cos - 1.05 * sin)) [all...] |
/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/ |
MainActivity.java | 217 float cos = (float) Math.cos((double) value); local 220 mat.set(0, 0, (float) (.299 + .701 * cos + .168 * sin)); 221 mat.set(1, 0, (float) (.587 - .587 * cos + .330 * sin)); 222 mat.set(2, 0, (float) (.114 - .114 * cos - .497 * sin)); 223 mat.set(0, 1, (float) (.299 - .299 * cos - .328 * sin)); 224 mat.set(1, 1, (float) (.587 + .413 * cos + .035 * sin)); 225 mat.set(2, 1, (float) (.114 - .114 * cos + .292 * sin)); 226 mat.set(0, 2, (float) (.299 - .3 * cos + 1.25 * sin)); 227 mat.set(1, 2, (float) (.587 - .588 * cos - 1.05 * sin)) [all...] |
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
MainActivity.java | 217 float cos = (float) Math.cos((double) value); local 220 mat.set(0, 0, (float) (.299 + .701 * cos + .168 * sin)); 221 mat.set(1, 0, (float) (.587 - .587 * cos + .330 * sin)); 222 mat.set(2, 0, (float) (.114 - .114 * cos - .497 * sin)); 223 mat.set(0, 1, (float) (.299 - .299 * cos - .328 * sin)); 224 mat.set(1, 1, (float) (.587 + .413 * cos + .035 * sin)); 225 mat.set(2, 1, (float) (.114 - .114 * cos + .292 * sin)); 226 mat.set(0, 2, (float) (.299 - .3 * cos + 1.25 * sin)); 227 mat.set(1, 2, (float) (.587 - .588 * cos - 1.05 * sin)) [all...] |