Valuable

com.phasmidsoftware.matchers.Valuable
case class Valuable(value: Int)

Represents a terminal expression in the expression hierarchy.

A Valuable is a leaf node in the expression structure, encapsulating a numeric value. It directly stores a value of type com.phasmidsoftware.number.Int.

Value parameters

value

The numeric value encapsulated by this terminal expression.

Attributes

Constructor

Creates a Valuable with the specified numeric value.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

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

Inherited methods

def *(other: Expression): Expression

Combines this Expression with another Expression using the multiplication (*) operator.

Combines this Expression with another Expression using the multiplication (*) operator.

Value parameters

other

the Expression to multiply with this Expression.

Attributes

Returns

a new Expression representing the product of this Expression and the given Expression.

Inherited from:
Expression (hidden)
def +(other: Expression): Expression

Combines this Expression with another Expression using the addition (+) operator.

Combines this Expression with another Expression using the addition (+) operator.

Value parameters

other

the Expression to be added to this Expression.

Attributes

Returns

a new Expression representing the sum of this Expression and the given Expression.

Inherited from:
Expression (hidden)
def cos: Expression

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)
def exp: 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.

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)
def ln: Expression

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)
def negate: Expression

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)
def productElementNames: Iterator[String]

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
def productIterator: Iterator[Any]

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
def reciprocal: Expression

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)
def sin: Expression

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)
def sqrt: Expression

Computes the square root of a numeric expression.

Computes the square root of a numeric expression.

Attributes

Returns

An Expression representing the square root operation on the current expression.

Inherited from:
Expression (hidden)
def ∧(that: Expression): Expression

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 Expression to combine with this Expression.

Attributes

Returns

a new Expression representing the conjunction of this Expression and the given Expression.

Inherited from:
Expression (hidden)