Quotient

data class Quotient(val left: Value, val right: Value) : Operation

Quotient operation.

Parameters

left

Left value

right

Right value

Constructors

Link copied to clipboard
constructor(left: Value, right: Value)

Properties

Link copied to clipboard

Convert the value to a string that can be parsed by the algorithm lexer

Link copied to clipboard
open override val laTeXString: String

Convert the value to a LaTeX string

Link copied to clipboard
val left: Value
Link copied to clipboard
open override val mainPrecedence: Int

Get the precedence of the value, used for braces

Link copied to clipboard
open override val rawString: String

Convert the value to a raw string

Link copied to clipboard
Link copied to clipboard
open override val variables: Set<Variable>

Extract all variables from the value

Functions

Link copied to clipboard
open override fun compute(context: Context): Value

Compute the value in the given context

Link copied to clipboard
open fun divide(right: Value): Value

Divide by another value

Link copied to clipboard
open override fun equals(right: Value): Boolean

Check if the value is equal to another value

Link copied to clipboard
open fun lessThan(right: Value): Boolean

Check if the value is less than another value

Link copied to clipboard
open fun multiply(right: Value): Value

Multiply left value by right value

Link copied to clipboard
open fun raise(right: Value): Value

Raise left value to the power of right value

Link copied to clipboard
open fun remainder(right: Value): Value

Get the remainder of the division by another value

Link copied to clipboard
open fun sum(right: Value): Value

Sum left value with right value