DifferentiableExpression

interface DifferentiableExpression<T, out R : Expression<T>> : Expression<T>

Represents expression which structure can be differentiated.

Parameters

T

the type this expression takes as argument and returns.

R

the type of expression this expression can be differentiated to.

Functions

derivativeOrNull
Link copied to clipboard
common
abstract fun derivativeOrNull(symbols: List<Symbol>): R?
Differentiates this expression by ordered collection of symbols.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
invoke
Link copied to clipboard
common
abstract operator fun invoke(arguments: Map<Symbol, T>): T
Calls this expression from arguments.
toString
Link copied to clipboard
common
open fun toString(): String

Inheritors

FirstDerivativeExpression
Link copied to clipboard

Extensions

derivative
Link copied to clipboard
common
fun <T, R : Expression<T>> DifferentiableExpression<T, R>.derivative(symbols: List<Symbol>): R
fun <T, R : Expression<T>> DifferentiableExpression<T, R>.derivative(vararg symbols: Symbol): R
fun <T, R : Expression<T>> DifferentiableExpression<T, R>.derivative(name: String): R