TerminalExpression
Represents a terminal expression in the expression hierarchy.
A TerminalExpression is a leaf node in the expression structure, encapsulating a numeric value. It directly stores a value of type com.phasmidsoftware.number.Number.
Value parameters
- value
-
The numeric value encapsulated by this terminal expression.
Attributes
- Constructor
-
Creates a TerminalExpression with the specified numeric value.
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CoreMillExpressionclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Multiplies this expression with another expression.
Multiplies this expression with another expression.
Value parameters
- that
-
the expression to multiply with this expression
Attributes
- Returns
-
a new expression representing the multiplication of this expression and the given expression
- Inherited from:
- CoreMillExpression
Combines the current expression with another expression using the addition operator.
Combines the current expression with another expression using the addition operator.
Value parameters
- that
-
another Expression to be added to the current Expression.
Attributes
- Returns
-
a new Expression representing the addition of the current Expression and the specified Expression.
- Inherited from:
- CoreMillExpression
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Combines this Expression with another Expression using the logical conjunction (∧) operator.
Combines this Expression with another Expression using the logical conjunction (∧) operator.
Value parameters
- that
-
the
Expressionto combine with thisExpression.
Attributes
- Returns
-
a new
Expressionrepresenting the conjunction of thisExpressionand the givenExpression. - Inherited from:
- CoreMillExpression
Concrete fields
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
Inherited fields
Computes the cosine of the current expression.
Computes the cosine of the current expression.
This method applies the cosine function to the current mathematical expression, returning a new expression that represents the result of the transformation.
Attributes
- Returns
-
a new Expression representing the cosine of the current expression.
- Inherited from:
- CoreMillExpression
Calculates the exponential of the current expression (e∧x), where x is the value represented by the current Expression instance. This transformation is applied monadically to the expression.
Calculates the exponential of the current expression (e∧x), where x is the value represented by the current Expression instance. This transformation is applied monadically to the expression.
Attributes
- Returns
-
a new Expression representing the exponential of the current expression.
- Inherited from:
- CoreMillExpression
Computes the natural logarithm (ln) of the current mathematical expression.
Computes the natural logarithm (ln) of the current mathematical expression.
Attributes
- Returns
-
a new Expression representing the natural logarithm of this Expression.
- Inherited from:
- CoreMillExpression
Negates the current expression, effectively multiplying it by -1.
Negates the current expression, effectively multiplying it by -1.
Attributes
- Returns
-
a new expression representing the negation of the current expression.
- Inherited from:
- CoreMillExpression
Computes the reciprocal of the current expression, representing it as a monadic operation.
Computes the reciprocal of the current expression, representing it as a monadic operation.
Attributes
- Returns
-
a new Expression where the operation corresponds to the reciprocal (1 / this expression).
- Inherited from:
- CoreMillExpression
Computes the sine of the current mathematical expression.
Computes the sine of the current mathematical expression.
Attributes
- Returns
-
A new Expression representing the sine of the current expression.
- Inherited from:
- CoreMillExpression
Computes the square root of a numeric expression.
Computes the square root of a numeric expression.
Attributes
- Returns
-
An
Expressionrepresenting the square root operation on the current expression. - Inherited from:
- CoreMillExpression