diff --git a/exact-numbers/src/main/kotlin/xyz/lbres/exactnumbers/expressions/term/Term.kt b/exact-numbers/src/main/kotlin/xyz/lbres/exactnumbers/expressions/term/Term.kt index f07eddf..fa466d7 100644 --- a/exact-numbers/src/main/kotlin/xyz/lbres/exactnumbers/expressions/term/Term.kt +++ b/exact-numbers/src/main/kotlin/xyz/lbres/exactnumbers/expressions/term/Term.kt @@ -26,9 +26,9 @@ sealed class Term : Number() { abstract val coefficient: ExactFraction abstract val factors: List> abstract val logs: List - abstract val squareRoots: List abstract val pis: List abstract val piCount: Int + abstract val squareRoots: List abstract operator fun unaryMinus(): Term abstract operator fun unaryPlus(): Term diff --git a/signatures/v1.0.0/changes.md b/signatures/v1.0.0/updates.md similarity index 69% rename from signatures/v1.0.0/changes.md rename to signatures/v1.0.0/updates.md index 35d59e4..7474d98 100644 --- a/signatures/v1.0.0/changes.md +++ b/signatures/v1.0.0/updates.md @@ -29,7 +29,7 @@ DEL fun checkIsEFString(s: String): Boolean **CastingOverflowException** ```kotlin -ADD class CastingOverflowException: ArithmeticException +ADD class CastingOverflowException: ArithmeticException() ``` ### xyz.lbres.exactnumbers.expressions.term @@ -43,9 +43,9 @@ DEL class Term: Number() ADD val factors: List> ADD val logs: List -ADD val squareRoots: List ADD val pis: List ADD val piCount: Int +ADD val squareRoots: List ADD fun getFactorsByType(irrationalType: String): List> @@ -80,20 +80,14 @@ ADD abstract class IrrationalNumber>: Comparable, Num DEL class Log: Comparable, Irrational ADD class Log: IrrationalNumber -ADD Log(argument: BigInteger, isDivided: Boolean) -ADD Log(argument: BigInteger, base: Int, isDivided: Boolean) -ADD Log(argument: ExactFraction, isDivided: Boolean) -ADD Log(argument: ExactFraction, base: Int, isDivided: Boolean) -ADD Log(argument: Int, isDivided: Boolean) -ADD Log(argument: Int, base: Int, isDivided: Boolean) -ADD Log(argument: Long, isDivided: Boolean) -ADD Log(argument: Long, base: Int, isDivided: Boolean) - -DEL val isDivided: Boolean -ADD @Deprecated val isDivided: Boolean - -DEL fun swapDivided(): Log -ADD @Deprecated fun swapDivided(): Log +DEL Log(argument: BigInteger, isDivided: Boolean) +DEL Log(argument: BigInteger, base: Int, isDivided: Boolean) +DEL Log(argument: ExactFraction, isDivided: Boolean) +DEL Log(argument: ExactFraction, base: Int, isDivided: Boolean) +DEL Log(argument: Int, isDivided: Boolean) +DEL Log(argument: Int, base: Int, isDivided: Boolean) +DEL Log(argument: Long, isDivided: Boolean) +DEL Log(argument: Long, base: Int, isDivided: Boolean) ``` ### xyz.lbres.exactnumbers.irrationals.pi @@ -106,12 +100,6 @@ ADD class Pi: IrrationalNumber() DEL Pi(isDivided: Boolean): Pi ADD fun toPlainString(): String - -DEL val isDivided: Boolean -ADD @Deprecated val isDivided: Boolean - -DEL fun swapDivided(): Pi -ADD @Deprecated fun swapDivided(): Pi ``` ### xyz.lbres.exactnumbers.irrationals.pi @@ -122,12 +110,6 @@ DEL class Sqrt: Comparable, Irrational ADD class Sqrt: IrrationalNumber ADD fun toPlainString(): String - -DEL val isDivided: Boolean -ADD @Deprecated val isDivided: Boolean - -DEL fun swapDivided(): Sqrt -ADD @Deprecated fun swapDivided(): Sqrt ``` ### xyz.lbres.expression.term diff --git a/signatures/v1.0.0/v1.0.0.md b/signatures/v1.0.0/v1.0.0.md index 609718c..fa06ea0 100644 --- a/signatures/v1.0.0/v1.0.0.md +++ b/signatures/v1.0.0/v1.0.0.md @@ -96,7 +96,7 @@ fun isEFString(s: String): Boolean **ExactFractionOverFlowException** ```kotlin -class ExactFractionOverflowException: ArithmeticException +class ExactFractionOverflowException: ArithmeticException() ExactFractionOverflowException() ExactFractionOverflowException(message: String) @@ -110,13 +110,13 @@ var overflowValue: String? **CastingOverflowException** ```kotlin -class CastingOverflowException: ArithmeticException - -var message: String? -var overflowValue: Any? +class CastingOverflowException: ArithmeticException() CastingOverflowException() CastingOverflowException(baseType: String, targetType: String, valueString: String, overflowValue: Any?) + +var message: String? +var overflowValue: Any? ``` ### xyz.lbres.exactnumbers.expressions.term @@ -128,17 +128,17 @@ class Term: Number() val coefficient: ExactFraction val factors: List> val logs: List -val squareRoots: List val pis: List val piCount: Int +val squareRoots: List fun getFactorsByType(irrationalType: String): List> fun getSimplified(): Term fun getValue(): BigDecimal fun isZero(): Boolean -operator fun div(): Term -operator fun times(): Term +operator fun div(other: Term): Term +operator fun times(other: Term): Term operator fun unaryMinus(): Term operator fun unaryPlus(): Term @@ -164,28 +164,30 @@ fun fromValues(coefficient: ExactFraction, logs: List, roots: List, p ```kotlin abstract class IrrationalNumber> : Comparable, Number() -val isDivided: Boolean // DEPRECATED val isInverted: Boolean val type: String +val isDivided: Boolean // DEPRECATED + fun getRationalValue(): ExactFraction? fun getValue(): BigDecimal fun inverse(): T fun isRational(): Boolean fun isZero(): Boolean -fun swapDivided(): T // DEPRECATED operator fun div(other: ExactFraction): Term operator fun div(other: IrrationalNumber<*>): Term operator fun times(other: ExactFraction): Term operator fun times(other: IrrationalNumber<*>): Term + +fun swapDivided(): T // DEPRECATED ``` ### xyz.lbres.exactnumbers.irrationals.log **Log** ```kotlin -class Log: IrrationalNumber +class Log: IrrationalNumber() Log(argument: BigInteger): Log Log(argument: BigInteger, base: Int): @@ -233,7 +235,7 @@ val TYPE: String **Sqrt** ```kotlin -class Sqrt: IrrationalNumber +class Sqrt: IrrationalNumber() Sqrt(radicand: ExactFraction): Sqrt Sqrt(radicand: BigInteger): Sqrt