algebraixlib.mathobjects.couplet module¶
A math object that represents a couplet.
-
class
algebraixlib.mathobjects.couplet.
Couplet
(left, right=None, direct_load=False)[source]¶ Bases:
algebraixlib.mathobjects.mathobject.MathObject
A couplet, consisting of a ‘left component’
MathObject
and a ‘right’MathObject
.Construct an instance, consisting of two
MathObject
instancesleft
andright
.If either of the arguments is not a
MathObject
, make it anAtom
with the argument as value.-
left
¶ Read-only property; return the left component of this instance.
-
right
¶ Read-only property; return the right of this instance.
-
get_ground_set
()[source]¶ Return the ground set of the lowest-level algebra of this
MathObject
.
-
is_reflexive
()[source]¶ Return
True
if thisCouplet
is reflexive.Reflexive means that left and right are equal.
-
is_symmetric
()[source]¶ Return
True
if thisCouplet
is symmetric.Reflexive means that left and right are equal.
-
get_str
()[source]¶ Return the instance’s string representation (the string representation of the value).
-
__eq__
(other)[source]¶ A value-based comparison for equality. Return
True
if type and both members match.
-