Lines Matching refs:CR
179 public abstract class CR extends Number { class
279 public static CR valueOf(BigInteger n) { in valueOf()
287 public static CR valueOf(int n) { in valueOf()
295 public static CR valueOf(long n) { in valueOf()
304 public static CR valueOf(double n) { in valueOf()
319 CR result = valueOf(mantissa).shiftLeft(exp); in valueOf()
329 public static CR valueOf(float n) { in valueOf()
333 public static CR ZERO = valueOf(0);
334 public static CR ONE = valueOf(1);
446 CR simple_ln() { in simple_ln()
449 static CR ten_ninths = valueOf(10).divide(valueOf(9));
450 static CR twentyfive_twentyfourths = valueOf(25).divide(valueOf(24));
451 static CR eightyone_eightyeths = valueOf(81).divide(valueOf(80));
452 static CR ln2_1 = valueOf(7).multiply(ten_ninths.simple_ln());
453 static CR ln2_2 =
455 static CR ln2_3 = valueOf(3).multiply(eightyone_eightyeths.simple_ln());
456 static CR ln2 = ln2_1.subtract(ln2_2).add(ln2_3);
460 static CR atan_reciprocal(int n) { in atan_reciprocal()
464 static CR four = valueOf(4);
478 public int compareTo(CR x, int r, int a) { in compareTo()
501 public int compareTo(CR x, int a) { in compareTo()
520 public int compareTo(CR x) { in compareTo()
571 public static CR valueOf(String s, int radix) in valueOf()
588 return CR.valueOf(scaled_result).divide(CR.valueOf(divisor)); in valueOf()
599 CR scaled_CR; in toString()
677 CR scale; in toStringFloatRep()
679 scale = CR.valueOf(big_radix.pow(scale_exp)).inverse(); in toStringFloatRep()
681 scale = CR.valueOf(big_radix.pow(-scale_exp)); in toStringFloatRep()
683 CR scaled_res = multiply(scale); in toStringFloatRep()
689 scaled_res = scaled_res.multiply(CR.valueOf(big_radix)); in toStringFloatRep()
783 public CR add(CR x) { in add()
791 public CR shiftLeft(int n) { in shiftLeft()
800 public CR shiftRight(int n) { in shiftRight()
811 public CR assumeInt() { in assumeInt()
818 public CR negate() { in negate()
825 public CR subtract(CR x) { in subtract()
832 public CR multiply(CR x) { in multiply()
840 public CR inverse() { in inverse()
847 public CR divide(CR x) { in divide()
857 public CR select(CR x, CR y) { in select()
864 public CR max(CR x) { in max()
871 public CR min(CR x) { in min()
879 public CR abs() { in abs()
886 public CR exp() { in exp()
892 CR square_root = shiftRight(1).exp(); in exp()
902 public static CR PI = new gl_pi_CR();
911 public static CR atan_PI = four.multiply(four.multiply(atan_reciprocal(5))
914 static CR half_pi = PI.shiftRight(1);
919 public CR cos() { in cos()
925 CR adjustment = PI.multiply(CR.valueOf(pi_multiples)); in cos()
933 CR cos_half = shiftRight(1).cos(); in cos()
943 public CR sin() { in sin()
950 public CR asin() { in asin()
953 CR new_arg = ONE.subtract(multiply(this)).sqrt(); in asin()
965 public CR acos() { in acos()
978 public CR ln() { in ln()
989 CR quarter = sqrt().sqrt().ln(); in ln()
993 CR scaled_result = shiftRight(extra_bits).ln(); in ln()
994 return scaled_result.add(CR.valueOf(extra_bits).multiply(ln2)); in ln()
1003 public CR sqrt() { in sqrt()
1020 abstract class slow_CR extends CR {
1041 class int_CR extends CR {
1054 class assumed_int_CR extends CR {
1055 CR value;
1056 assumed_int_CR(CR x) { in assumed_int_CR()
1069 class add_CR extends CR {
1070 CR op1;
1071 CR op2;
1072 add_CR(CR x, CR y) { in add_CR()
1085 class shifted_CR extends CR {
1086 CR op;
1088 shifted_CR(CR x, int n) { in shifted_CR()
1098 class neg_CR extends CR {
1099 CR op;
1100 neg_CR(CR x) { in neg_CR()
1112 class select_CR extends CR {
1113 CR selector;
1115 CR op1;
1116 CR op2;
1117 select_CR(CR s, CR x, CR y) { in select_CR()
1146 class mult_CR extends CR {
1147 CR op1;
1148 CR op2;
1149 mult_CR(CR x, CR y) { in mult_CR()
1167 CR tmp; in approximate()
1193 class inv_CR extends CR {
1194 CR op;
1195 inv_CR(CR x) { op = x; } in inv_CR()
1237 class prescaled_exp_CR extends CR {
1238 CR op;
1239 prescaled_exp_CR(CR x) { op = x; } in prescaled_exp_CR()
1278 CR op;
1279 prescaled_cos_CR(CR x) { in prescaled_cos_CR()
1368 CR op;
1369 prescaled_ln_CR(CR x) { op = x; } in prescaled_ln_CR()
1413 CR op;
1414 prescaled_asin_CR(CR x) { in prescaled_asin_CR()
1494 class sqrt_CR extends CR {
1495 CR op;
1496 sqrt_CR(CR x) { op = x; } in sqrt_CR()
1500 sqrt_CR(CR x, int min_p, BigInteger max_a) { in sqrt_CR()
1579 private static CR SQRT_HALF = new sqrt_CR(ONE.shiftRight(1));
1611 final CR b_prod_as_CR = CR.valueOf(b_prod).shiftRight(-eval_prec); in approximate()
1617 final CR next_b_as_CR = b_prod_as_CR.sqrt(); in approximate()
1625 final CR next_b_as_CR = in approximate()