com.phasmidsoftware.number.expression.mill
Members list
Type members
Classlikes
Sub-trait of Item to define an Anadic operator.
Sub-trait of Item to define an Anadic operator.
Attributes
- Supertypes
CHS (change sign) operator (subtype of Monadic).
Subclass of Item which represents a dyadic operator.
Subclass of Item which represents a dyadic operator.
Value parameters
- leftAssociativity
-
the left-associativity of the operator.
- precedence
-
the precedence level of the operator.
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Represents a dyadic (binary) expression consisting of a left operand, a right operand, and an operator connecting them in an infix notation.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Expressionclass Objecttrait Matchableclass AnyShow all
Empty Mill definition.
Empty Mill definition.
Attributes
Expr (expression) operator (subtype of Item). In old-fashioned terminology, x is the augend for the + operator, and the multiplier for the * operator.
Represents an Expression in a symbolic mathematical computation system.
Represents an Expression in a symbolic mathematical computation system.
This class provides operations for mathematical and logical manipulations, including arithmetic, trigonometric, and monadic transformations.
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Expression.type
Trait representing a mathematical expression, which can be combined or transformed using various operations. This is intended as a fundamental building block for creating complex expressions or performing symbolic computations.
Trait representing a mathematical expression, which can be combined or transformed using various operations. This is intended as a fundamental building block for creating complex expressions or performing symbolic computations.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Trait to model the behavior of an item that goes into the Mill.
Trait to model the behavior of an item that goes into the Mill.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Ln (natural logarithm) operator (subtype of Monadic).
Trait to define the behavior of a "mill."
Trait to define the behavior of a "mill."
CONSIDER rename Stack as ListMill and extract push, pop and isEmpty as Stack[Item].
Attributes
- Companion
- object
- Supertypes
- Known subtypes
- Self type
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
A case class that models a monadic expression, which represents a single-operand operation applied to another Expression.
A case class that models a monadic expression, which represents a single-operand operation applied to another Expression.
Value parameters
- expression
-
the underlying
Expressionon which the monadic operation is applied. - str
-
a string representation of the operator.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Expressionclass Objecttrait Matchableclass AnyShow all
Sqrt (square root) operator (subtype of Monadic).
A case class to represent a stack of Items, providing behavior of Mill.
A case class to represent a stack of Items, providing behavior of Mill.
Value parameters
- stack
-
a List[Item] which will represent the stack.
Attributes
Represents a terminal expression in the expression hierarchy.
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.
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Expressionclass Objecttrait Matchableclass AnyShow all