Searched refs:sin (Results 1 - 25 of 542) sorted by relevance

1234567891011>>

/external/eigen/doc/snippets/
H A DCwise_sin.cpp2 cout << v.sin() << endl;
H A DTutorial_AdvancedInitialization_LinSpaced.cpp4 table.col(2) = table.col(1).sin();
/external/v8/test/mjsunit/regress/
H A Dregress-2234.js32 Math.sin(i / 1779 * Math.PI);
35 assertEquals(0, Math.sin(0));
H A Dregress-370384.js16 g(Math.sin, 6.283185307179586, "Math.sin");
H A Dregress-transcendental.js48 test(Math.sin, 6.283185307179586, "Math.sin");
/external/v8/test/mjsunit/
H A Dsin-cos.js28 // Test Math.sin and Math.cos.
32 assertEquals("-Infinity", String(1/Math.sin(-0)));
38 return Math.sin(x) + Math.cos(x) + Math.tan(x);
49 assertEquals(0, Math.sin(0));
50 assertEquals(1, Math.sin(Math.PI / 2));
64 assertTrue(Math.sin(x) != Math.cos(x));
68 assertTrue(Math.sin(x) != Math.log(x));
87 function sin(x) { function
136 var err_sin = abs_error(Math.sin, sin,
[all...]
H A Dtranscendentals.js34 assertTrue(Math.sin(x) != Math.sin(y));
/external/libcxx/test/std/depr/depr.c.headers/
H A Dtgmath_h.pass.cpp21 double x = sin(1.0);
/external/libcxx/test/std/numerics/c.math/
H A Dctgmath.pass.cpp21 double x = std::sin(0);
/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.cpp11 MatrixXd sinA = A.sin();
12 std::cout << "sin(A) = \n" << sinA << "\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/eigen/unsupported/Eigen/src/MatrixFunctions/
H A DStemFunction.h38 res = -std::sin(x);
44 res = std::sin(x);
51 static Scalar sin(Scalar x, int n) function in class:Eigen::StdStemFunctions
56 res = std::sin(x);
62 res = -std::sin(x);
/external/chromium-trace/catapult/experimental/heatmap/
H A Dcolor.js10 var r = Math.sin(Math.PI * h);
11 var g = Math.sin(Math.PI * (h + 1/3));
12 var b = Math.sin(Math.PI * (h + 2/3));
/external/webrtc/webrtc/voice_engine/test/auto_test/fakes/
H A Dfake_media_process.h27 sin(2.0 * 3.14 * frequency * 400.0 / sampling_freq_hz));
31 audio_10ms[2 * i] * sin(2.0 * 3.14 *
34 audio_10ms[2 * i + 1] * sin(2.0 * 3.14 *
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/java/lang/
H A DStrictMath.java59 public static double sin(double a){ method in class:StrictMath
60 return Math.sin(a);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowFloatMath.java37 public static float sin(float angle) { method in class:ShadowFloatMath
38 return (float) Math.sin(angle);
/external/libgdx/gdx/src/com/badlogic/gdx/math/
H A DAffine2.java156 float sin = MathUtils.sinDeg(degrees);
159 m01 = -sin;
161 m10 = sin;
172 float sin = MathUtils.sin(radians);
175 m01 = -sin;
177 m10 = sin;
185 * @param sin The angle sine.
187 public Affine2 setToRotation (float cos, float sin) { argument
189 m01 = -sin;
[all...]
/external/compiler-rt/test/cfi/icall/
H A Dexternal-call.c19 fn = sin;
/external/proguard/src/proguard/gui/splash/
H A DSineTiming.java51 return 0.5 + 0.5 * Math.sin(2.0 * Math.PI * (time + phase) / period);
/external/skia/experimental/SkV8Example/js/
H A Dspeed.js9 canvas.fillRect(100, 100, Math.sin(tick)*100, Math.cos(tick)*100);
/external/v8/test/webkit/
H A Dproperty-iteration.js36 // Assigning to 'Math.sin' should not change iteration order of properties.
38 Math.sin = 42;
/external/v8/test/unittests/base/
H A Dieee754-unittest.cc249 EXPECT_THAT(sin(std::numeric_limits<double>::quiet_NaN()), IsNaN());
250 EXPECT_THAT(sin(std::numeric_limits<double>::signaling_NaN()), IsNaN());
251 EXPECT_THAT(sin(std::numeric_limits<double>::infinity()), IsNaN());
252 EXPECT_THAT(sin(-std::numeric_limits<double>::infinity()), IsNaN());
254 // Tests for sin for |x| < pi/4
255 EXPECT_EQ(-std::numeric_limits<double>::infinity(), 1 / sin(-0.0));
256 EXPECT_EQ(std::numeric_limits<double>::infinity(), 1 / sin(0.0));
257 // sin(x) = x for x < 2^-27
258 EXPECT_EQ(2.3283064365386963e-10, sin(2.3283064365386963e-10));
259 EXPECT_EQ(-2.3283064365386963e-10, sin(
[all...]
/external/clang/test/Sema/
H A Dwarn-shadow.c19 int sin; // okay; 'sin' has not been declared, even though it's a builtin. local
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/equations/
H A DElastic.java22 return -(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p ));
40 return a*(float)Math.pow(2,-10*t) * (float)Math.sin( (t-s)*(2*PI)/p ) + 1;
58 if (t < 1) return -.5f*(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p ));
59 return a*(float)Math.pow(2,-10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p )*.5f + 1;

Completed in 1984 milliseconds

1234567891011>>