Searched refs:cos (Results 1 - 25 of 273) sorted by relevance

1234567891011

/external/eigen/doc/snippets/
H A DCwise_cos.cpp2 cout << v.cos() << endl;
H A DTutorial_AdvancedInitialization_LinSpaced.cpp5 table.col(3) = table.col(1).cos();
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DCipherOutputStreamTest.java57 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 Dsin-cos.js28 // 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 Dtranscendentals.js36 assertTrue(Math.cos(x) != Math.cos(y));
/external/eigen/unsupported/doc/examples/
H A DMatrixPower.cpp10 A << cos(1), -sin(1), 0,
11 sin(1), cos(1), 0,
H A DMatrixSquareRoot.cpp11 A << cos(pi/3), -sin(pi/3),
12 sin(pi/3), cos(pi/3);
H A DMatrixSine.cpp14 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 Dregress-crbug-150729.js33 var M = [i[0], Math.cos(t) + i[7074959]];
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
H A DStemFunction.h30 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 DShadowFloatMath.java42 public static float cos(float angle) { method in class:ShadowFloatMath
43 return (float) Math.cos(angle);
/external/skia/experimental/SkV8Example/js/
H A Dspeed.js9 canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
/external/flac/libFLAC/
H A Dwindow.c71 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 Djet_test.cc109 { // 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 DComplexUtils.java43 * computed as <code>r&middot;cos(theta) + r&middot;sin(theta)i</code></p>
69 return new Complex(r * FastMath.cos(theta), r * FastMath.sin(theta));
H A DComplex.java527 * <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 &plusmn; INFINITY i) = 1 &#x2213; INFINITY i
540 * cos(&plusmn;INFINITY + i) = NaN + NaN i
541 * cos(&plusmn;INFINITY &plusmn; 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 DHarmonicFunction.java23 /** Harmonic function of the form <code>f (t) = a cos (&omega; t + &phi;)</code>.
51 return a * FastMath.cos(omega * x + phi);
/external/libvorbis/test/
H A Dutil.c41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
/external/skia/gm/
H A Danisotropic.cpp43 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 Dmat4-spec.js356 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 DTextureGeneratorMagic.java55 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 Dcos.pass.cpp14 // 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 DCRTest.java123 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 DSampleVertices.cpp176 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 DEulerAngles.h41 using std::cos;
79 Scalar c1 = cos(res[0]);
93 Scalar c1 = cos(res[0]);

Completed in 2418 milliseconds

1234567891011