-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c5bef
commit e2f2522
Showing
7 changed files
with
429 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
*v0.1.1 → v1.0.0* | ||
|
||
### xyz.lbres.exactnumbers.exactfraction | ||
|
||
**ExactFraction** | ||
```kotlin | ||
class ExactFraction | ||
|
||
DEL var numerator: BigInteger | ||
ADD val numerator: BigInteger | ||
|
||
DEL var denominator: BigInteger | ||
ADD val denominator: BigInteger | ||
|
||
ADD fun isWholeNumber(): Boolean | ||
ADD fun pow(other: BigInteger): ExactFraction | ||
ADD fun pow(other: Long): ExactFraction | ||
ADD fun pow(other: Int): ExactFraction | ||
ADD fun roundToWhole(roundingMode: RoundingMode): ExactFraction | ||
``` | ||
|
||
**ExactFractionOverflowException** | ||
```kotlin | ||
DEL var message: String? | ||
ADD val message: String? | ||
|
||
DEL var overflowValue: String? | ||
ADD val overflowValue: String? | ||
``` | ||
|
||
**Other** | ||
```kotlin | ||
DEL fun checkIsEFString(s: String): Boolean | ||
``` | ||
|
||
### xyz.lbres.exactnumbers.exceptions | ||
|
||
**CastingOverflowException** | ||
```kotlin | ||
ADD class CastingOverflowException: ArithmeticException() | ||
``` | ||
|
||
### xyz.lbres.exactnumbers.expressions.term | ||
|
||
**Note**: xyz.lbres.expressions.term → xyz.lbres.exactnumbers.expressions.term | ||
|
||
**Term** | ||
```kotlin | ||
ADD class Term | ||
DEL class Term: Number() | ||
|
||
ADD val factors: List<IrrationalNumber<*>> | ||
ADD val logs: List<Log> | ||
ADD val pis: List<Pi> | ||
ADD val piCount: Int | ||
ADD val squareRoots: List<Sqrt> | ||
|
||
ADD fun getFactorsByType(irrationalType: String): List<IrrationalNumber<*>> | ||
|
||
DEL fun getLogs(): List<Log> | ||
ADD @Deprecated fun getLogs(): List<Log> | ||
|
||
DEL fun getPiCount(): Int | ||
ADD @Deprecated fun getPiCount(): Int | ||
|
||
DEL fun getSquareRoots(): List<Sqrt> | ||
ADD @Deprecated fun getSquareRoots(): List<Sqrt> | ||
``` | ||
|
||
**Term.Companion** | ||
```kotlin | ||
object Term.Companion | ||
|
||
ADD fun fromValues(coefficient: ExactFraction, factors: List<IrrationalNumber<*>>): Term | ||
``` | ||
|
||
### xyz.lbres.exactnumbers.irrationals | ||
|
||
**IrrationalNumber** | ||
```kotlin | ||
ADD abstract class IrrationalNumber<T : IrrationalNumber<T>>: Comparable<T>, Number() | ||
``` | ||
|
||
### xyz.lbres.exactnumbers.irrationals.log | ||
|
||
**Log** | ||
```kotlin | ||
DEL class Log: Comparable<Log>, Irrational | ||
ADD class Log: IrrationalNumber<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 | ||
|
||
**Pi** | ||
```kotlin | ||
DEL class Pi: Irrational | ||
ADD class Pi: IrrationalNumber<Pi>() | ||
|
||
DEL Pi(isDivided: Boolean): Pi | ||
|
||
ADD fun toPlainString(): String | ||
``` | ||
|
||
### xyz.lbres.exactnumbers.irrationals.pi | ||
|
||
**Sqrt** | ||
```kotlin | ||
DEL class Sqrt: Comparable<Sqrt>, Irrational | ||
ADD class Sqrt: IrrationalNumber<Sqrt>() | ||
|
||
ADD fun toPlainString(): String | ||
``` | ||
|
||
### xyz.lbres.expression.term | ||
|
||
**Note**: xyz.lbres.expressions.term → xyz.lbres.exactnumbers.expressions.term | ||
|
||
```kotlin | ||
DEL class Term | ||
ADD @Deprecated typealias Term = xyz.lbres.exactnumbers.expressions.term.Term | ||
``` |
Oops, something went wrong.