PolynomialSpace

class PolynomialSpace<T, C : Ring<T>, ScaleOperations<T>>(ring: C) : Group<Polynomial<T>> , ScaleOperations<Polynomial<T>>

Space of polynomials.

Parameters

T

the type of operated polynomials.

C

the intersection of Ring of T and ScaleOperations of T.

ring

the C instance.

Constructors

Link copied to clipboard
fun <C : Ring<T>, ScaleOperations<T>> PolynomialSpace(ring: C)

Functions

Link copied to clipboard
open override fun add(left: Polynomial<T>, right: Polynomial<T>): Polynomial<T>
Link copied to clipboard
fun Polynomial<T>.asFunction(): (T) -> T
Link copied to clipboard
open fun binaryOperation(operation: String, left: Polynomial<T>, right: Polynomial<T>): Polynomial<T>
Link copied to clipboard
open override fun binaryOperationFunction(operation: String): (left: Polynomial<T>, right: Polynomial<T>) -> Polynomial<T>
Link copied to clipboard
open fun bindSymbol(value: String): Polynomial<T>
Link copied to clipboard
open fun bindSymbolOrNull(value: String): Polynomial<T>?
Link copied to clipboard
open operator fun Polynomial<T>.div(k: Number): Polynomial<T>
Link copied to clipboard
open fun export(arg: Polynomial<T>): Polynomial<T>
Link copied to clipboard
operator fun Polynomial<T>.invoke(arg: T): T

Evaluates the polynomial for the given value arg.

Link copied to clipboard
open operator fun Polynomial<T>.minus(arg: Polynomial<T>): Polynomial<T>
Link copied to clipboard
open operator fun Polynomial<T>.plus(arg: Polynomial<T>): Polynomial<T>
Link copied to clipboard
open override fun scale(a: Polynomial<T>, value: Double): Polynomial<T>
Link copied to clipboard
open operator fun Number.times(arg: Polynomial<T>): Polynomial<T>
open operator fun Polynomial<T>.times(k: Number): Polynomial<T>
Link copied to clipboard
open operator override fun Polynomial<T>.unaryMinus(): Polynomial<T>
Link copied to clipboard
open fun unaryOperation(operation: String, arg: Polynomial<T>): Polynomial<T>
Link copied to clipboard
open override fun unaryOperationFunction(operation: String): (arg: Polynomial<T>) -> Polynomial<T>
Link copied to clipboard
open operator fun Polynomial<T>.unaryPlus(): Polynomial<T>

Properties

Link copied to clipboard
open override val zero: Polynomial<T>

Sources

Link copied to clipboard