BigIntField

object BigIntField : Field<BigInt> , NumbersAddOps<BigInt> , ScaleOperations<BigInt>

Kotlin Multiplatform implementation of Big Integer numbers (KBigInteger).

Author

Robert Drynkin

Peter Klimai

Functions

add
Link copied to clipboard
common
open override fun add(left: BigInt, right: BigInt): BigInt
Addition of two elements.
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
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open fun bindSymbolOrNull(value: String): BigInt?
Wraps a raw string to T object.
div
Link copied to clipboard
common
open operator fun BigInt.div(other: 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(left: BigInt, right: BigInt): BigInt
Division of two elements.
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 BigInt.minus(other: BigInt): BigInt
Subtraction of two elements.
open operator fun Number.minus(other: BigInt): BigInt
Subtraction of number from element.
open operator fun BigInt.minus(other: Number): BigInt
Subtraction of element from number.
multiply
Link copied to clipboard
common
open override fun multiply(left: BigInt, right: 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 BigInt.plus(other: BigInt): BigInt
Addition of two elements.
open operator fun Number.plus(other: BigInt): BigInt
Addition of scalar and element.
open operator fun BigInt.plus(other: Number): BigInt
Addition of element and scalar.
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.
scale
Link copied to clipboard
common
open override fun scale(a: BigInt, value: Double): BigInt
Scaling an element by a scalar.
times
Link copied to clipboard
common
open operator fun BigInt.times(other: BigInt): BigInt
Multiplies this element by scalar.
open operator fun Number.times(other: BigInt): BigInt
Multiplication of this number by element.
open operator fun BigInt.times(k: Number): BigInt
Multiplication of this element by a scalar.
unaryMinus
Link copied to clipboard
common
operator fun String.unaryMinus(): BigInt
open operator override 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 a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: BigInt) -> BigInt
Dynamically dispatches a 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
The neutral element of multiplication
zero
Link copied to clipboard
common
open override val zero: BigInt
The neutral element of addition.

Extensions

nd
Link copied to clipboard
common
val BigIntField.nd: BufferedRingOpsND<BigInt, BigIntField>

Sources

common source
Link copied to clipboard