Exemple #1
0
 public static IntervalDouble COJAC_MAGIC_DOUBLE_relativeError(IntervalDouble n) {
   return new IntervalDouble(n.relativeError());
 }
Exemple #2
0
 public static String COJAC_MAGIC_DOUBLE_toStr(IntervalDouble n) {
   return n.asInternalString();
 }
Exemple #3
0
 public static IntervalDouble math_max(IntervalDouble a, IntervalDouble b) {
   if (a.compareTo(b) > 0) return a;
   return b;
 }
Exemple #4
0
 public static long d2l(IntervalDouble a) {
   return a.longValue();
 }
Exemple #5
0
 public static int d2i(IntervalDouble a) {
   return a.intValue();
 }
Exemple #6
0
 public static int dcmpg(IntervalDouble a, IntervalDouble b) {
   if (Double.isNaN(a.value) || Double.isNaN(b.value)) return +1;
   return a.compareTo(b);
 }