Lines Matching refs:CR
57 private static void check_eq(CR x, CR y, String s) { in check_eq()
69 CR zero = CR.valueOf(0); in testCR()
70 CR one = CR.valueOf(1); in testCR()
71 CR two = CR.valueOf(2); in testCR()
84 CR three = two.add(one); in testCR()
85 CR four = two.add(two); in testCR()
86 check_eq(CR.valueOf(4), four, "2 + 2 failed"); in testCR()
87 check_eq(CR.valueOf(3), three, "2 + 1 failed"); in testCR()
93 CR thirteen = CR.valueOf(13); in testCR()
101 CR e = one.exp(); in testCR()
106 CR half_pi = CR.PI.divide(two); in testCR()
107 CR half = one.divide(two); in testCR()
110 CR huge = CR.valueOf(million.multiply(million).multiply(thousand)); in testCR()
122 .monotoneDerivative(zero, CR.PI); in testCR()
133 CR sqrt13 = thirteen.sqrt(); in testCR()
135 CR tmp = CR.PI.add(CR.valueOf(-123).exp()); in testCR()
136 CR tmp2 = tmp.subtract(CR.PI); in testCR()
142 check_appr_eq(Math.sin(n), CR.valueOf(n).sin().doubleValue(), in testCR()
144 check_appr_eq(Math.cos(n), CR.valueOf(n).cos().doubleValue(), in testCR()
146 check_appr_eq(Math.exp(n), CR.valueOf(n).exp().doubleValue(), in testCR()
149 CR.valueOf(0.1*n).asin().doubleValue(), in testCR()
152 CR.valueOf(0.1*n).acos().doubleValue(), in testCR()
155 check_appr_eq(Math.log(n), CR.valueOf(n).ln().doubleValue(), in testCR()
160 CR.valueOf(12345678).cos().doubleValue(), in testCR()