import java.util.*; class Test { void testCos(double d) { if (Math.cos(d) == 4.0) { System.out.println("impossible"); } if (Math.sin(d) > 2) { System.out.println("impossible"); } if (Math.sin(d) < -1) { System.out.println("impossible"); } double d1 = Math.sin(d); if (d1 >= 1.0) { System.out.println(d1 == 1.0); } } void test() { double val = Math.sqrt(2); float f = 1.0f; double res = val + f; if (res > 2.41 && res < 2.42) {} } void testNan() { double res = Math.sqrt(Math.sqrt(2) - 2); if (Double.isNaN(res)) {} } void testDouble() { double d1 = 4; double d2 = 5.5; if (d1 * d2 == 22.0) {} if (d2 / d1 == 1.375) {} if (d1 + d2 == 9.5) {} if (d1 - d2 == -1.5) {} if (d2 % d1 == 1.5) {} } void testFloat() { float d1 = 4f; float d2 = 5.5f; if (d1 * d2 == 18) {} if (d2 / d1 == 1.375) {} if (d1 + d2 == 9.5) {} if (d1 - d2 == -1.5) {} if (d2 % d1 == 1.5) {} } }