Esempio n. 1
0
 def __truediv__(self, other: 'ExactRealProgram'):
     other = cast_input(other)
     return ExactDiv([self, other])
Esempio n. 2
0
 def __sub__(self, other: 'ExactRealProgram'):
     other = cast_input(other)
     return ExactSub([self, other])
Esempio n. 3
0
 def __mul__(self, other: 'ExactRealProgram'):
     other = cast_input(other)
     return ExactMul([self, other])
Esempio n. 4
0
 def __add__(self, other: 'ExactRealProgram'):
     other = cast_input(other)
     return ExactAdd([self, other])
Esempio n. 5
0
 def __rtruediv__(self, other: 'ExactRealProgram'):
     return cast_input(other) / self
Esempio n. 6
0
 def __rmul__(self, other: 'ExactRealProgram'):
     return cast_input(other) * self
Esempio n. 7
0
 def __rsub__(self, other: 'ExactRealProgram'):
     return cast_input(other) - self
Esempio n. 8
0
 def __radd__(self, other: 'ExactRealProgram'):
     return cast_input(other) + self