DyadicExpression
Represents a dyadic (binary) expression consisting of a left operand, a right operand, and an operator connecting them in an infix notation.
Value parameters
- left
-
the left-hand side operand of the expression, represented as an
Expression. - operator
-
the operator as a
Stringconnecting the left and right operands. - right
-
the right-hand side operand of the expression, represented as an
Expression.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
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.
- Definition Classes
-
Any
Evaluates and retrieves the integer value of this Expression.
Evaluates and retrieves the integer value of this Expression.
Attributes
- Returns
-
the evaluated integer representation of this
Expression.
Inherited methods
Combines this Expression with another Expression using the multiplication (*) operator.
Combines this Expression with another Expression using the multiplication (*) operator.
Value parameters
- other
-
the
Expressionto multiply with thisExpression.
Attributes
- Returns
-
a new
Expressionrepresenting the product of thisExpressionand the givenExpression. - Inherited from:
- Expression (hidden)
Combines this Expression with another Expression using the addition (+) operator.
Combines this Expression with another Expression using the addition (+) operator.
Value parameters
- other
-
the
Expressionto be added to thisExpression.
Attributes
- Returns
-
a new
Expressionrepresenting the sum of thisExpressionand the givenExpression. - Inherited from:
- Expression (hidden)
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:
- Expression (hidden)
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:
- Expression (hidden)
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:
- Expression (hidden)
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:
- Expression (hidden)
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
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:
- Expression (hidden)
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:
- Expression (hidden)
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:
- Expression (hidden)
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:
- Expression (hidden)