/external/eigen/doc/snippets/ |
H A D | Cwise_cos.cpp | 2 cout << v.cos() << endl;
|
H A D | Tutorial_AdvancedInitialization_LinSpaced.cpp | 5 table.col(3) = table.col(1).cos();
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
H A D | CipherOutputStreamTest.java | 57 CipherOutputStream cos = new CipherOutputStream(tos); 58 cos.write(data); 59 cos.flush(); 73 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); 75 cos.write(data[i]); 77 cos.flush(); 91 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); 92 cos.write(data); 93 cos.flush(); 106 CipherOutputStream cos [all...] |
/external/v8/test/mjsunit/ |
H A D | 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({ valueO [all...] |
H A D | transcendentals.js | 36 assertTrue(Math.cos(x) != Math.cos(y));
|
/external/eigen/unsupported/doc/examples/ |
H A D | MatrixPower.cpp | 10 A << cos(1), -sin(1), 0, 11 sin(1), cos(1), 0,
|
H A D | MatrixSquareRoot.cpp | 11 A << cos(pi/3), -sin(pi/3), 12 sin(pi/3), cos(pi/3);
|
H A D | 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/v8/test/mjsunit/regress/ |
H A D | regress-crbug-150729.js | 33 var M = [i[0], Math.cos(t) + i[7074959]];
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
H A D | 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/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowFloatMath.java | 42 public static float cos(float angle) { method in class:ShadowFloatMath 43 return (float) Math.cos(angle);
|
/external/skia/experimental/SkV8Example/js/ |
H A D | speed.js | 9 canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
|
/external/flac/libFLAC/ |
H A D | 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. [all...] |
/external/ceres-solver/internal/ceres/ |
H A D | 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( [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
H A D | 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));
|
H A D | Complex.java | 527 * <code> cos(a + bi) = cos(a)cosh(b) - sin(a)sinh(b)i</code></pre> 529 * {@link java.lang.Math#sin}, {@link java.lang.Math#cos}, 539 * cos(1 ± INFINITY i) = 1 ∓ INFINITY i 540 * cos(±INFINITY + i) = NaN + NaN i 541 * cos(±INFINITY ± INFINITY i) = NaN + NaN i</code></pre></p> 546 public Complex cos() { method in class:Complex 551 return createComplex(FastMath.cos(real) * MathUtils.cosh(imaginary), 561 * <code> cosh(a + bi) = cosh(a)cos(b) + sinh(a)sin(b)i</code></pre> 563 * {@link java.lang.Math#sin}, {@link java.lang.Math#cos}, [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/ |
H A D | 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/ |
H A D | util.c | 41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
|
/external/skia/gm/ |
H A D | anisotropic.cpp | 43 SkScalar angle = 0.0f, sin, cos; variable 47 sin = SkScalarSinCos(angle, &cos); 48 canvas.drawLine(cos * kInnerOffset, sin * kInnerOffset, 49 cos * kImageSize/2, sin * kImageSize/2, p);
|
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/spec/gl-matrix/ |
H A D | mat4-spec.js | 356 0, Math.cos(rad), Math.sin(rad), 0, 357 0, -Math.sin(rad), Math.cos(rad), 0, 378 0, Math.cos(rad), Math.sin(rad), 0, 379 0, -Math.sin(rad), Math.cos(rad), 0, 396 0, Math.cos(rad), Math.sin(rad), 0, 397 0, -Math.sin(rad), Math.cos(rad), 0, 418 0, Math.cos(rad), Math.sin(rad), 0, 419 0, -Math.sin(rad), Math.cos(rad), 0, 435 Math.cos(rad), 0, -Math.sin(rad), 0, 437 Math.sin(rad), 0, Math.cos(ra [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
H A D | TextureGeneratorMagic.java | 55 xyz[1] = -(float) Math.cos(xyz[0] - xyz[1] + xyz[2]) * turbulence; 61 xyz[0] = (float) Math.cos(xyz[0] - xyz[1] - xyz[2]) * turbulence; 73 xyz[0] = -(float) Math.cos(-xyz[0] + xyz[1] - xyz[2]) * turbulence; 85 xyz[1] = -(float) Math.cos(-xyz[0] + xyz[1] + xyz[2]) * turbulence; 91 xyz[0] = (float) Math.cos(xyz[0] + xyz[1] + xyz[2]) * turbulence; 103 xyz[0] = -(float) Math.cos(-xyz[0] - xyz[1] + xyz[2]) * turbulence; 144 xyz[1] = (float) Math.cos((-texvec[0] + texvec[1] - texvec[2]) * 5.0f); 145 xyz[2] = -(float) Math.cos((-texvec[0] - texvec[1] + texvec[2]) * 5.0f);
|
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
H A D | cos.pass.cpp | 14 // cos(const complex<T>& x); 25 assert(cos(c) == x); 42 std::complex<double> r = cos(x[i]);
|
/external/crcalc/tests/src/com/hp/creals/ |
H A D | CRTest.java | 123 check_eq(cosine.execute(one), one.cos(), "monotoneDerivative failed"); 124 check_eq(cosine.execute(three), three.cos(), 127 check_eq(acos.execute(one.cos()), one, "acos(cos(1) failed"); 144 check_appr_eq(Math.cos(n), CR.valueOf(n).cos().doubleValue(), 145 "cos failed at " + n); 159 check_appr_eq(Math.cos(12345678.0), 160 CR.valueOf(12345678).cos().doubleValue(), 161 "cos faile [all...] |
/external/skia/samplecode/ |
H A D | SampleVertices.cpp | 176 SkScalar cos; local 177 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); 178 v[i+1].set(cos, sin); 204 SkScalar cos; local 205 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); 206 v[i*2 + 0].set(cos/2, sin/2); 207 v[i*2 + 1].set(cos, sin);
|
/external/eigen/Eigen/src/Geometry/ |
H A D | EulerAngles.h | 41 using std::cos; 79 Scalar c1 = cos(res[0]); 93 Scalar c1 = cos(res[0]);
|