/** * {@inheritDoc} * * The current implementation strictly enforces * {@code this.multiply(n).equals(new Decimal64(n * this.doubleValue()))}. */ public Decimal64 multiply(final int n) { return new Decimal64(n * this.value); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 add(final double a) { return new Decimal64(value + a); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 divide(final double a) { return new Decimal64(value / a); }
/** * {@inheritDoc} * * The current implementation strictly enforces * {@code this.divide(a).equals(new Decimal64(this.doubleValue() * / a.doubleValue()))}. * */ public Decimal64 divide(final Decimal64 a) { return new Decimal64(this.value / a.value); }
/** * {@inheritDoc} * * The current implementation strictly enforces * {@code this.reciprocal().equals(new Decimal64(1.0 * / this.doubleValue()))}. */ public Decimal64 reciprocal() { return new Decimal64(1.0 / this.value); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 multiply(final double a) { return new Decimal64(value * a); }
/** * {@inheritDoc} * * The current implementation strictly enforces * {@code this.multiply(a).equals(new Decimal64(this.doubleValue() * * a.doubleValue()))}. */ public Decimal64 multiply(final Decimal64 a) { return new Decimal64(this.value * a.value); }
/** * {@inheritDoc} * * The current implementation strictly enforces * {@code this.subtract(a).equals(new Decimal64(this.doubleValue() * - a.doubleValue()))}. */ public Decimal64 subtract(final Decimal64 a) { return new Decimal64(this.value - a.value); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 subtract(final double a) { return new Decimal64(value - a); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 signum() { return new Decimal64(FastMath.signum(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 copySign(final double sign) { return new Decimal64(FastMath.copySign(value, sign)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 pow(final Decimal64 e) { return new Decimal64(FastMath.pow(value, e.value)); }
/** Base 10 logarithm. * @return base 10 logarithm of the instance * @since 3.2 */ public Decimal64 log10() { return new Decimal64(FastMath.log10(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 tan() { return new Decimal64(FastMath.tan(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 atan() { return new Decimal64(FastMath.atan(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 asinh() { return new Decimal64(FastMath.asinh(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 linearCombination(final Decimal64 a1, final Decimal64 b1, final Decimal64 a2, final Decimal64 b2) { return new Decimal64(MathArrays.linearCombination(a1.value, b1.value, a2.value, b2.value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 floor() { return new Decimal64(FastMath.floor(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 rint() { return new Decimal64(FastMath.rint(value)); }