Algebra

interface Algebra<T>

Represents an algebraic structure.

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
Wraps a raw string to T object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: T): T
Dynamically invokes an unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open fun unaryOperationFunction(operation: String): (T) -> T
Dynamically dispatches an unary operation with the certain name.

Inheritors

ExpressionAlgebra
Link copied to clipboard
SpaceOperations
Link copied to clipboard
NumericAlgebra
Link copied to clipboard
TrigonometricOperations
Link copied to clipboard
HyperbolicOperations
Link copied to clipboard
PowerOperations
Link copied to clipboard
ExponentialOperations
Link copied to clipboard

Extensions

bindSymbol
Link copied to clipboard
common
fun <T : Any> Algebra<T>.bindSymbol(symbol: Symbol): T