/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new <code>Measurement</code> object that is the quotient of this * object divided by the specified object. * * @param m The <code>Measurement</code> object that will be the divisor of * this object. * @return A new <code>Measurement</code> object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the <code>Unit</code> objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new <code>Measurement</code> object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The <code>Unit</code> object of the specified value. * @return A new <code>Measurement</code> that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the <code>Unit</code> objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified value. * * @param d The value that will be the divisor of this object. * @param u The {@code Unit} object of the specified value. * @return A new {@code Measurement} that is the quotient of this object * divided by the specified value. The error and unit of the new * object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(double d, Unit u) { return new Measurement(value / d, error / Math.abs(d), unit.div(u), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of this * object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of * this object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the quotient of this * object divided by the specified object. * * @param m The {@code Measurement} object that will be the divisor of * this object. * @return A new {@code Measurement} object that is the quotient of this * object divided by the specified object. The error and unit of the * new object are computed. The time of the new object is set to the * time of this object. * @throws ArithmeticException If the {@code Unit} objects of this object * and the specified object cannot be divided. * @see Unit */ public Measurement div(Measurement m) { double mvalue = m.value; return new Measurement(value / mvalue, (Math.abs(value) * m.error + error * Math.abs(mvalue)) / (mvalue * mvalue), unit.div(m.unit), time); }