PowerOperations

interface PowerOperations<T> : Algebra<T>

A context extension to include power operations based on exponentiation.

Parameters

T

the type of element of this structure.

Types

Companion
Link copied to clipboard
common
object Companion

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 fun bindSymbolOrNull(value: String): T?
Wraps a raw string to T object.
pow
Link copied to clipboard
common
open infix fun T.pow(pow: Number): T
Raises this value to the power pow.
power
Link copied to clipboard
common
abstract fun power(arg: T, pow: Number): T
Raises arg to the power pow.
sqrt
Link copied to clipboard
common
open fun sqrt(arg: T): T
Computes the square root of the value arg.
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

ExtendedFieldOperations
Link copied to clipboard
JBigDecimalFieldBase
Link copied to clipboard

Sources

common source
Link copied to clipboard