Kone
Toggle table of contents
0.0.0-experiment
common
Platform filter
common
Switch theme
Search in API
Kone
kone.algebraicExtra
/
dev.lounres.kone.algebraic
/
RationalContext
Rational
Context
data
object
RationalContext
:
Reification
<
Rational
>
,
Field
<
Rational
>
,
Order
<
Rational
>
,
Hashing
<
Rational
>
(
source
)
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
open
val
UInt
.
value
:
Rational
open
val
ULong
.
value
:
Rational
zero
Link copied to clipboard
open
override
val
zero
:
Rational
Functions
compare
With
Link copied to clipboard
open
infix override
fun
Rational
.
compareWith
(
other
:
Rational
)
:
ComparisonResult
contains
Link copied to clipboard
open
operator override
fun
contains
(
element
:
Any
?
)
:
Boolean
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
Rational
.
div
(
other
:
UInt
)
:
Rational
open
operator override
fun
Rational
.
div
(
other
:
ULong
)
:
Rational
open
operator override
fun
Int
.
div
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
div
(
other
:
Rational
)
:
Rational
open
operator override
fun
UInt
.
div
(
other
:
Rational
)
:
Rational
open
operator override
fun
ULong
.
div
(
other
:
Rational
)
:
Rational
equals
To
Link copied to clipboard
open
infix override
fun
Rational
.
equalsTo
(
other
:
Rational
)
:
Boolean
hash
Link copied to clipboard
open
override
fun
Rational
.
hash
(
)
:
Int
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
Rational
.
minus
(
other
:
UInt
)
:
Rational
open
operator override
fun
Rational
.
minus
(
other
:
ULong
)
:
Rational
open
operator override
fun
Int
.
minus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
minus
(
other
:
Rational
)
:
Rational
open
operator override
fun
UInt
.
minus
(
other
:
Rational
)
:
Rational
open
operator override
fun
ULong
.
minus
(
other
:
Rational
)
:
Rational
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
Rational
.
plus
(
other
:
UInt
)
:
Rational
open
operator override
fun
Rational
.
plus
(
other
:
ULong
)
:
Rational
open
operator override
fun
Int
.
plus
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
plus
(
other
:
Rational
)
:
Rational
open
operator override
fun
UInt
.
plus
(
other
:
Rational
)
:
Rational
open
operator override
fun
ULong
.
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
reify
Link copied to clipboard
open
override
fun
reify
(
element
:
Any
?
)
:
Rational
reify
Maybe
Link copied to clipboard
open
override
fun
reifyMaybe
(
element
:
Any
?
)
:
Maybe
<
Rational
>
reify
Or
Null
Link copied to clipboard
open
override
fun
reifyOrNull
(
element
:
Any
?
)
:
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
Rational
.
times
(
other
:
UInt
)
:
Rational
open
operator override
fun
Rational
.
times
(
other
:
ULong
)
:
Rational
open
operator override
fun
Int
.
times
(
other
:
Rational
)
:
Rational
open
operator override
fun
Long
.
times
(
other
:
Rational
)
:
Rational
open
operator override
fun
UInt
.
times
(
other
:
Rational
)
:
Rational
open
operator override
fun
ULong
.
times
(
other
:
Rational
)
:
Rational
unary
Minus
Link copied to clipboard
open
operator override
fun
Rational
.
unaryMinus
(
)
:
Rational
value
Of
Link copied to clipboard
open
override
fun
valueOf
(
arg
:
Int
)
:
Rational
open
override
fun
valueOf
(
arg
:
Long
)
:
Rational
open
override
fun
valueOf
(
arg
:
UInt
)
:
Rational
open
override
fun
valueOf
(
arg
:
ULong
)
:
Rational