Kone
0.0.0-dev-1
common
kone.numberTheory
/
com.lounres.kone.algebraic
/
RationalField
Rational
Field
object
RationalField
:
Field
<
Rational
>
Members
Properties
one
Link copied to clipboard
open
override
val
one
:
Rational
reciprocal
Link copied to clipboard
open
val
Rational
.
reciprocal
:
Rational
value
Link copied to clipboard
open
val
Int
.
value
:
Rational
open
val
Long
.
value
:
Rational
zero
Link copied to clipboard
open
override
val
zero
:
Rational
Functions
div
Link copied to clipboard
open
operator override
fun
Rational
.
div
(
other
:
Rational
)
:
Rational
open
operator override
fun
Rational
.
div
(
other
:
Int
)
:
Rational
open
operator override
fun
Rational
.
div
(
other
:
Long
)
:
Rational
open
operator override
fun
Int
.
div
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
div
(
other
:
Rational
)
:
Rational
eq
Link copied to clipboard
open
infix
fun
Rational
.
eq
(
other
:
Rational
)
:
Boolean
equals
To
Link copied to clipboard
open
infix override
fun
Rational
.
equalsTo
(
other
:
Rational
)
:
Boolean
is
Not
One
Link copied to clipboard
open
fun
Rational
.
isNotOne
(
)
:
Boolean
is
Not
Zero
Link copied to clipboard
open
fun
Rational
.
isNotZero
(
)
:
Boolean
is
One
Link copied to clipboard
open
override
fun
Rational
.
isOne
(
)
:
Boolean
is
Zero
Link copied to clipboard
open
override
fun
Rational
.
isZero
(
)
:
Boolean
minus
Link copied to clipboard
open
operator override
fun
Rational
.
minus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Rational
.
minus
(
other
:
Int
)
:
Rational
open
operator override
fun
Rational
.
minus
(
other
:
Long
)
:
Rational
open
operator override
fun
Int
.
minus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
minus
(
other
:
Rational
)
:
Rational
neq
Link copied to clipboard
open
infix
fun
Rational
.
neq
(
other
:
Rational
)
:
Boolean
not
Equals
To
Link copied to clipboard
open
infix
fun
Rational
.
notEqualsTo
(
other
:
Rational
)
:
Boolean
plus
Link copied to clipboard
open
operator override
fun
Rational
.
plus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Rational
.
plus
(
other
:
Int
)
:
Rational
open
operator override
fun
Rational
.
plus
(
other
:
Long
)
:
Rational
open
operator override
fun
Int
.
plus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
plus
(
other
:
Rational
)
:
Rational
pow
Link copied to clipboard
open
infix
fun
Rational
.
pow
(
exponent
:
Int
)
:
Rational
open
infix
fun
Rational
.
pow
(
exponent
:
Long
)
:
Rational
open
infix
fun
Rational
.
pow
(
exponent
:
UInt
)
:
Rational
open
infix
fun
Rational
.
pow
(
exponent
:
ULong
)
:
Rational
power
Link copied to clipboard
open
fun
power
(
base
:
Rational
,
exponent
:
Int
)
:
Rational
open
fun
power
(
base
:
Rational
,
exponent
:
Long
)
:
Rational
open
fun
power
(
base
:
Rational
,
exponent
:
UInt
)
:
Rational
open
fun
power
(
base
:
Rational
,
exponent
:
ULong
)
:
Rational
times
Link copied to clipboard
open
operator override
fun
Rational
.
times
(
other
:
Rational
)
:
Rational
open
operator override
fun
Rational
.
times
(
other
:
Int
)
:
Rational
open
operator override
fun
Rational
.
times
(
other
:
Long
)
:
Rational
open
operator override
fun
Int
.
times
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
times
(
other
:
Rational
)
:
Rational
unary
Minus
Link copied to clipboard
open
operator override
fun
Rational
.
unaryMinus
(
)
:
Rational
unary
Plus
Link copied to clipboard
open
operator
fun
Rational
.
unaryPlus
(
)
:
Rational
value
Of
Link copied to clipboard
open
override
fun
valueOf
(
arg
:
Int
)
:
Rational
open
override
fun
valueOf
(
arg
:
Long
)
:
Rational