diff --git a/kmath-core/src/jvmMain/kotlin/scientifik/kmath/operations/BigNumbers.kt b/kmath-core/src/jvmMain/kotlin/scientifik/kmath/operations/BigNumbers.kt index 32feeb0d1..48d3c8c59 100644 --- a/kmath-core/src/jvmMain/kotlin/scientifik/kmath/operations/BigNumbers.kt +++ b/kmath-core/src/jvmMain/kotlin/scientifik/kmath/operations/BigNumbers.kt @@ -7,7 +7,7 @@ import java.math.MathContext /** * A field wrapper for Java [BigInteger] */ -object JBigIntegerField : Field, PowerOperations { +object JBigIntegerField : Field { override val zero: BigInteger get() = BigInteger.ZERO @@ -19,8 +19,6 @@ object JBigIntegerField : Field, PowerOperations { override fun BigInteger.minus(b: BigInteger): BigInteger = this.subtract(b) override fun multiply(a: BigInteger, k: Number): BigInteger = a.multiply(k.toInt().toBigInteger()) override fun multiply(a: BigInteger, b: BigInteger): BigInteger = a.multiply(b) - override fun power(arg: BigInteger, pow: Number): BigInteger = arg.pow(pow.toInt()) - override fun sqrt(arg: BigInteger): BigInteger = arg.sqrt() override fun BigInteger.unaryMinus(): BigInteger = negate() }