/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new <code>Measurement</code> object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The <code>Unit</code> of the specified value. * @return A new <code>Measurement</code> object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new <code>Measurement</code> object that is the product of this * object multiplied by the specified object. * * @param m The <code>Measurement</code> object that will be multiplied with * this object. * @return A new <code>Measurement</code> that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified value. * * @param d The value that will be multiplied with this object. * @param u The {@code Unit} of the specified value. * @return A new {@code Measurement} object that is the product of this * object multiplied 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 units of this object and the specified * value cannot be multiplied. * @see Unit */ public Measurement mul(double d, Unit u) { return new Measurement(value * d, error * Math.abs(d), unit.mul(u), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with this * object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with * this object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }
/** * Returns a new {@code Measurement} object that is the product of this * object multiplied by the specified object. * * @param m The {@code Measurement} object that will be multiplied with * this object. * @return A new {@code Measurement} that is the product of this object * multiplied 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 multiplied. * @see Unit */ public Measurement mul(Measurement m) { double mvalue = m.value; return new Measurement(value * mvalue, Math.abs(value) * m.error + error * Math.abs(mvalue), unit.mul(m.unit), time); }