∅
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 aLiteralrepresentation 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 aLiteralrepresentation of the integer and returns that. -
Division (
/): Represents the division operation. For expressions or integers, it creates a transformed expression wrapped in theReciprocaloperation. -
Subtraction (
-): Represents subtraction or negation. For expressions or integers, it creates a transformed expression wrapped in theNegateoperation.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
∅.type