@@ -46,48 +46,3 @@ def __hash__(self):
4646
4747 def dict (self ):
4848 return {"type" : "Constant" , "value" : self .value }
49-
50- def __add__ (self , other ):
51- return self .value + other
52-
53- def __sub__ (self , other ):
54- return self .value - other
55-
56- def __mul__ (self , other ):
57- return self .value * other
58-
59- def __truediv__ (self , other ):
60- return self .value / other
61-
62- def __pow__ (self , other ):
63- return self .value ** other
64-
65- def __radd__ (self , other ):
66- return other + self .value
67-
68- def __rsub__ (self , other ):
69- return other - self .value
70-
71- def __rmul__ (self , other ):
72- return other * self .value
73-
74- def __rtruediv__ (self , other ):
75- return other / self .value
76-
77- def __rpow__ (self , other ):
78- return other ** self .value
79-
80- def __lt__ (self , other ):
81- return self .value < other
82-
83- def __le__ (self , other ):
84- return self .value <= other
85-
86- def __gt__ (self , other ):
87- return self .value > other
88-
89- def __ge__ (self , other ):
90- return self .value >= other
91-
92- def __float__ (self ):
93- return float (self .value )
0 commit comments