/** * {@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} * @since 3.2 */ public Decimal64 multiply(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 pow(final int n) { return new Decimal64(FastMath.pow(value, n)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 cos() { return new Decimal64(FastMath.cos(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 acos() { return new Decimal64(FastMath.acos(value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 atan2(final Decimal64 x) { return new Decimal64(FastMath.atan2(value, x.value)); }
/** {@inheritDoc} * @since 3.2 */ public Decimal64 linearCombination(final Decimal64 a1, final Decimal64 b1, final Decimal64 a2, final Decimal64 b2, final Decimal64 a3, final Decimal64 b3, final Decimal64 a4, final Decimal64 b4) { return new Decimal64(MathArrays.linearCombination(a1.value, b1.value, a2.value, b2.value, a3.value, b3.value, a4.value, b4.value)); }