BigIntField

object BigIntField : Field<BigInt> , RingWithNumbers<BigInt>

Kotlin Multiplatform implementation of Big Integer numbers (KBigInteger).

Author

Robert Drynkin (https://github.com/robdrynkin) and Peter Klimai (https://github.com/pklimai)

Functions

add
Link copied to clipboard
common
open override fun add(a: BigInt, b: BigInt): BigInt
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: BigInt, right: BigInt): BigInt
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: BigInt, right: BigInt) -> BigInt
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): BigInt
Wraps a raw string to T object.
div
Link copied to clipboard
common
open operator fun Number.div(b: BigInt): BigInt
Division of element by scalar.
open operator fun BigInt.div(b: BigInt): BigInt
Division of two elements.
open operator fun BigInt.div(k: Number): BigInt
Division of this element by scalar.
divide
Link copied to clipboard
common
open override fun divide(a: BigInt, b: BigInt): BigInt
Division of two elements.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: BigInt): BigInt
Dynamically invokes a binary operation with the certain name with numeric first argument.
leftSideNumberOperationFunction
Link copied to clipboard
common
open fun leftSideNumberOperationFunction(operation: String): (left: Number, right: BigInt) -> BigInt
Dynamically dispatches a binary operation with the certain name with numeric first argument.
minus
Link copied to clipboard
common
open operator fun Number.minus(b: BigInt): BigInt
Subtraction of number from element.
open operator fun BigInt.minus(b: Number): BigInt
Subtraction of element from number.
open operator fun BigInt.minus(b: BigInt): BigInt
Subtraction of two elements.
multiply
Link copied to clipboard
common
open override fun multiply(a: BigInt, k: Number): BigInt
open override fun multiply(a: BigInt, b: BigInt): BigInt
Multiplies two elements.
number
Link copied to clipboard
common
open override fun number(value: Number): BigInt
Wraps a number to T object.
plus
Link copied to clipboard
common
open operator fun Number.plus(b: BigInt): BigInt
Addition of scalar and element.
open operator fun BigInt.plus(b: Number): BigInt
Addition of element and scalar.
open operator fun BigInt.plus(b: BigInt): BigInt
Addition of two elements.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: BigInt, right: Number): BigInt
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open fun rightSideNumberOperationFunction(operation: String): (left: BigInt, right: Number) -> BigInt
Dynamically dispatches a binary operation with the certain name with numeric first argument.
times
Link copied to clipboard
common
open operator fun BigInt.times(b: BigInt): BigInt
Multiplies this element by scalar.
open operator fun Number.times(b: BigInt): BigInt
Multiplication of this number by element.
open operator fun BigInt.times(k: Number): BigInt
Multiplication of this element by a scalar.
toString
Link copied to clipboard
common
open fun toString(): String
unaryMinus
Link copied to clipboard
common
operator fun String.unaryMinus(): BigInt
open operator fun BigInt.unaryMinus(): BigInt
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: BigInt): BigInt
Dynamically invokes an unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: BigInt) -> BigInt
Dynamically dispatches an unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
operator fun String.unaryPlus(): BigInt
open operator fun BigInt.unaryPlus(): BigInt
Returns this value.

Properties

one
Link copied to clipboard
common
open override val one: BigInt
neutral operation for multiplication
zero
Link copied to clipboard
common
open override val zero: BigInt
The neutral element of addition.