Пример #1
0
 public static IntervalDouble math_pow(IntervalDouble a, IntervalDouble b) {
   IntervalDouble res =
       new IntervalDouble(
           Math.pow(a.value, b.value),
           DoubleInterval.pow(a.interval, b.interval),
           a.isUnStable || b.isUnStable);
   return res;
 }
Пример #2
0
 public static IntervalDouble dmul(IntervalDouble a, IntervalDouble b) {
   IntervalDouble res =
       new IntervalDouble(
           a.value * b.value,
           DoubleInterval.mul(a.interval, b.interval),
           a.isUnStable || b.isUnStable);
   return res;
 }
Пример #3
0
 public static IntervalDouble drem(IntervalDouble a, IntervalDouble b) {
   IntervalDouble res =
       new IntervalDouble(
           a.value % b.value,
           DoubleInterval.modulo(a.interval, b.interval),
           a.isUnStable || b.isUnStable);
   return res;
 }
Пример #4
0
 public static IntervalDouble COJAC_MAGIC_DOUBLE_width(IntervalDouble a) {
   return new IntervalDouble(DoubleInterval.width(a.interval));
 }
Пример #5
0
 public static IntervalDouble math_toDegrees(IntervalDouble a) {
   IntervalDouble res =
       new IntervalDouble(
           Math.toDegrees(a.value), DoubleInterval.toDegrees(a.interval), a.isUnStable);
   return res;
 }
Пример #6
0
 public static IntervalDouble math_log10(IntervalDouble a) {
   IntervalDouble res =
       new IntervalDouble(Math.log10(a.value), DoubleInterval.log10(a.interval), a.isUnStable);
   return res;
 }
Пример #7
0
 // it's just a neg operation, dont need to check the stability...
 public static IntervalDouble dneg(IntervalDouble a) {
   return new IntervalDouble(-a.value, DoubleInterval.neg(a.interval), a.isUnStable);
 }