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

12345678

/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/
H A D15.8.2.7.js24 ECMA Section: 15.8.2.7 cos( x )
35 var TITLE = "Math.cos(x)";
46 array[item++] = new TestCase( SECTION, "Math.cos.length", 1, Math.cos.length );
48 array[item++] = new TestCase( SECTION, "Math.cos()", Number.NaN, Math.cos() );
49 array[item++] = new TestCase( SECTION, "Math.cos(void 0)", Number.NaN, Math.cos(void 0) );
50 array[item++] = new TestCase( SECTION, "Math.cos(false)", 1, Math.cos(fals
[all...]
/external/v8/test/mjsunit/
H A Dsin-cos.js28 // Test Math.sin and Math.cos.
36 assertEquals(1, Math.cos(0));
37 assertEquals(-1, Math.cos(Math.PI));
46 assertTrue(Math.sin(x) != Math.cos(x));
H A Dtranscendentals.js36 assertTrue(Math.cos(x) != Math.cos(y));
/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/clang/test/CodeGen/
H A Dlibcalls-fno-builtin.c6 double cos(double x);
18 double t3(double x) { return cos(x); }
20 // CHECK: cos
H A Dlibcall-declarations.c23 double cos(double);
81 atan2f, ceil, ceill, ceilf, copysign, copysignl, copysignf, cos, cosl, cosf,
107 // CHECK-NOERRNO: declare double @cos(double) nounwind readnone
/external/stlport/src/
H A Dsincos.c43 *pcos = cos(x);
55 *pcos = cos(x);
H A Dcomplex_trig.cpp70 ::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(im
[all...]
/external/flac/libFLAC/
H A Dwindow.c74 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.
[all...]
/external/webkit/Source/JavaScriptCore/wtf/
H A DComplex.h41 return Complex(magnitude * cos(phase), magnitude * sin(phase));
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/atlantis/
H A Dswim.c60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/atlantis/
H A Dswim.c60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/
H A Dswim.c60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
/external/libvorbis/test/
H A Dutil.c41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
/external/stlport/stlport/stl/config/
H A D_como.h87 # define cosl cos
115 # define cosf cos
116 # define cosl cos
161 # define cosl cos
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/
H A DTransportConnection.java36 CipherOutputStream cos; field in class:TransportConnection
75 this.cos = new CipherOutputStream(new NullCipher(), os);
99 cos.changeCipher(bc);
180 cos.write(send_packet_header_buffer, 0, 5);
181 cos.write(message, off, len);
182 cos.write(send_padding_buffer, 0, padd_len);
192 cos.writePlain(send_mac_buffer, 0, send_mac_buffer.length);
195 cos.flush();
/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/skia/samplecode/
H A DSampleVertices.cpp179 SkScalar cos; local
180 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
181 v[i+1].set(cos, sin);
207 SkScalar cos; local
208 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
209 v[i*2 + 0].set(cos/2, sin/2);
210 v[i*2 + 1].set(cos, sin);
/external/valgrind/main/none/tests/amd64/
H A Dbug132918.c51 do_fprem(&r, 12.3*sin(theta), cos(theta)); show("xx", &r);
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/
H A Dmath-partial-sums.js15 ck = Math.cos(k);
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
H A Dmath-partial-sums.js15 ck = Math.cos(k);
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
H A DCylinder.java251 float[] cos = new float[radialSamples + 1];
255 cos[radialCount] = FastMath.cos(angle);
259 cos[radialSamples] = cos[0];
271 vRadial.set(cos[radialCount], sin[radialCount], 0.0f);
316 tempNormal.set(cos[radialCount], sin[radialCount], 0.0f);
H A DPQTorus.java160 x = (r * FastMath.cos(p * theta) * radius);
162 z = (r * FastMath.cos(q * theta) * radius);
167 x = (r * FastMath.cos(p * (theta + 0.01f)) * radius);
169 z = (r * FastMath.cos(q * (theta + 0.01f)) * radius);
184 float cx = FastMath.cos(beta) * width;
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/
H A DNavCalculator.java100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse)));
131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360));
274 double futureLat = currentLat + speed * time * Math.cos(course);
320 double dlat = distance * Math.cos(angle);
331 double dlong = dep * (1.0 / Math.cos(Math.toRadians(meanLat)));
536 double y = Math.sin(dLon) * Math.cos(p2.getLatitude());
537 double x = Math.cos(p1.getLatitude()) * Math.sin(p2.getLatitude())
538 - Math.sin(p1.getLatitude()) * Math.cos(p2.getLatitude()) * Math.cos(dLon);
551 // cos (ad
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
H A DWireSphere.java112 float x = radius * FastMath.cos(angle);
120 float x = radius * FastMath.cos(angle);
137 float x = radius * FastMath.cos(angle);

Completed in 582 milliseconds

12345678