∅

com.phasmidsoftware.number.expression.expr.∅
object ∅

The ∅ object represents the identity element in mathematical operations on expressions. It serves as a symbolic representation of the "empty" or neutral element in addition and multiplication operations.

This object supports operations such as addition, subtraction, multiplication, and division, which adhere to mathematical identity properties or represent specific transformations when combined with expressions.

Functions:

  • Addition (+): Performs addition with an expression or integer. For expressions, it returns the operand itself, acting as the addition identity. For integers, it creates a Literal representation of the integer and returns that.

  • Multiplication (*): Performs multiplication with an expression or integer. For expressions, it returns the operand itself, acting as the multiplication identity. For integers, it creates a Literal representation of the integer and returns that.

  • Division (/): Represents the division operation. For expressions or integers, it creates a transformed expression wrapped in the Reciprocal operation.

  • Subtraction (-): Represents subtraction or negation. For expressions or integers, it creates a transformed expression wrapped in the Negate operation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
∅.type

Members list

Value members

Concrete methods

def *(operand: Expression): Expression
def *(operand: Int): Expression
def +(operand: Expression): Expression
def +(operand: Int): Expression
def -(operand: Expression): Expression
def -(operand: Int): Expression
def /(operand: Expression): Expression
def /(operand: Int): Expression
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