MST

sealed class MST

A Mathematical Syntax Tree (MST) node for mathematical expressions.

Author

Alexander Nozik

Types

Binary
Link copied to clipboard
common
data class Binary(operation: String, left: MST, right: MST) : MST
A node containing binary operation.
Numeric
Link copied to clipboard
common
data class Numeric(value: Number) : MST
A node containing a numeric value or scalar.
Symbolic
Link copied to clipboard
common
data class Symbolic(value: String) : MST
A node containing raw string.
Unary
Link copied to clipboard
common
data class Unary(operation: String, value: MST) : MST
A node containing an unary operation.

Functions

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

Inheritors

MST
Link copied to clipboard
MST
Link copied to clipboard
MST
Link copied to clipboard
MST
Link copied to clipboard

Extensions

div
Link copied to clipboard
common
open operator fun MST.div(k: Number): MST
open operator fun MST.div(k: Number): MST
open operator fun MST.div(k: Number): MST
open operator fun MST.div(b: MST): MST
open operator fun MST.div(b: MST): MST
open operator fun MST.div(k: Number): MST
interpret
Link copied to clipboard
common
fun <T> MST.interpret(algebra: Algebra<T>): T
Interprets the MST node with this Algebra.
minus
Link copied to clipboard
common
open operator override fun MST.minus(b: MST): MST.Binary
open operator override fun MST.minus(b: MST): MST.Binary
open operator fun MST.minus(b: Number): MST
open operator override fun MST.minus(b: MST): MST.Binary
open operator fun MST.minus(b: Number): MST
open operator override fun MST.minus(b: MST): MST.Binary
plus
Link copied to clipboard
common
open operator fun MST.plus(b: MST): MST
open operator fun MST.plus(b: MST): MST
open operator fun MST.plus(b: Number): MST
open operator fun MST.plus(b: MST): MST
open operator fun MST.plus(b: MST): MST
open operator fun MST.plus(b: Number): MST
pow
Link copied to clipboard
common
open infix fun MST.pow(pow: Number): MST
times
Link copied to clipboard
common
open operator fun MST.times(k: Number): MST
open operator fun MST.times(k: Number): MST
open operator fun MST.times(b: MST): MST
open operator fun MST.times(b: MST): MST
open operator fun MST.times(k: Number): MST
open operator fun MST.times(k: Number): MST
open operator fun MST.times(b: MST): MST
unaryMinus
Link copied to clipboard
common
open operator override fun MST.unaryMinus(): MST.Unary
open operator override fun MST.unaryMinus(): MST.Unary
open operator override fun MST.unaryMinus(): MST.Unary
open operator override fun MST.unaryMinus(): MST.Unary
unaryPlus
Link copied to clipboard
common
open operator override fun MST.unaryPlus(): MST.Unary
open operator override fun MST.unaryPlus(): MST.Unary
open operator override fun MST.unaryPlus(): MST.Unary
open operator override fun MST.unaryPlus(): MST.Unary