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

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherOutputStream1Test.java67 CipherOutputStream cos = new CipherOutputStream(tos){};
68 cos.write(data);
69 cos.flush();
83 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher());
85 cos.write(data[i]);
87 cos.flush();
101 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher());
102 cos.write(data);
103 cos.flush();
110 cos
[all...]
/libcore/ojluni/src/main/native/
H A Djfdlibm.h42 #define cos jcos macro
H A DMath.c32 return cos(d);
154 NATIVE_METHOD(Math, cos, "!(D)D"),
H A Dfdlibm.h121 extern double cos __P((double));
H A DStrictMath.c160 NATIVE_METHOD(StrictMath, cos, "(D)D"),
/libcore/luni/src/test/java/libcore/java/lang/
H A DIntrinsicTest.java108 Math.cos(Math.PI);
109 Math.class.getMethod("cos", double.class).invoke(null, Math.PI);
H A DOldAndroidMathTest.java83 double r = Math.cos(Math.acos(ADJ / HYP));
154 // Test for method double java.lang.Math.cos(double)
155 assertEquals("Incorrect answer", 1.0, Math.cos(0), 0D);
156 assertEquals("Incorrect answer", 0.5403023058681398, Math.cos(1), 0D);
H A DOldAndroidStrictMathTest.java68 assertTrue("Returned incorrect arc cosine", StrictMath.cos(StrictMath
141 // Test for method double java.lang.StrictMath.cos(double)
143 assertTrue("Returned incorrect cosine", StrictMath.cos(StrictMath
/libcore/ojluni/src/main/java/java/lang/
H A DStrictMath.java53 * semantics are {@code sin}, {@code cos}, {@code tan},
105 public static native double cos(double a); method in class:StrictMath
172 * <i>not</i> expect {@code cos(toRadians(90.0))} to exactly
H A DMath.java135 public static native double cos(double a); method in class:Math
215 * <i>not</i> expect {@code cos(toRadians(90.0))} to exactly
/libcore/benchmarks/src/benchmarks/regression/
H A DStrictMathBenchmark.java135 StrictMath.cos(d);
H A DMathBenchmark.java149 result = Math.cos(d);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DMathTest.java79 double r = Math.cos(Math.acos(ADJ / HYP));
296 * java.lang.Math#cos(double)
299 // Test for method double java.lang.Math.cos(double)
300 assertEquals("Incorrect answer", 1.0, Math.cos(0), 0D);
301 assertEquals("Incorrect answer", 0.5403023058681398, Math.cos(1), 0D);
H A DStrictMathTest.java91 assertTrue("Returned incorrect arc cosine", StrictMath.cos(StrictMath
308 * java.lang.StrictMath#cos(double)
311 // Test for method double java.lang.StrictMath.cos(double)
313 assertTrue("Returned incorrect cosine", StrictMath.cos(StrictMath

Completed in 104 milliseconds