NumericAlgebra

interface NumericAlgebra<T> : Algebra<T>

An algebraic structure where elements can have numeric representation.

Parameters

T

the type of element of this structure.

Functions

binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: T, right: T): T
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open fun binaryOperationFunction(operation: String): (T, T) -> T
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): T
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open override fun bindSymbolOrNull(value: String): T?
Wraps a raw string to T object.
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: T): T
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, T) -> T
Dynamically dispatches a binary operation with the certain name with numeric first argument.
number
Link copied to clipboard
common
abstract fun number(value: Number): T
Wraps a number to T object.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: T, right: Number): T
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open fun rightSideNumberOperationFunction(operation: String): (T, right: Number) -> T
Dynamically dispatches a binary operation with the certain name with numeric first argument.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: T): T
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open fun unaryOperationFunction(operation: String): (T) -> T
Dynamically dispatches a unary operation with the certain name.

Inheritors

MstNumericAlgebra
Link copied to clipboard
MstGroup
Link copied to clipboard
MstExtendedField
Link copied to clipboard
Field
Link copied to clipboard
NumbersAddOps
Link copied to clipboard
ExtendedField
Link copied to clipboard
IntRing
Link copied to clipboard
ShortRing
Link copied to clipboard
ByteRing
Link copied to clipboard
LongRing
Link copied to clipboard
JBigIntegerField
Link copied to clipboard
JBigDecimalFieldBase
Link copied to clipboard

Extensions

e
Link copied to clipboard
common
val <T> NumericAlgebra<T>.e: T
The e mathematical constant.
pi
Link copied to clipboard
common
val <T> NumericAlgebra<T>.pi: T
The &pi; mathematical constant.

Sources

common source
Link copied to clipboard