Lines Matching refs:other
89 def diff_diff(self, other): argument
91 old = other.x if other else 0
100 def ratio(self, other): argument
102 old = other.x if other else 0
116 def __add__(self, other): argument
117 return self.__class__(self.x + other.x)
119 def __sub__(self, other): argument
120 return self.__class__(self.x - other.x)
122 def __mul__(self, other): argument
123 return self.__class__(self.x * other.x)
197 def diff_diff(self, other): argument
199 old_a, old_b = other if other else (Int(0), Int(0))
204 def ratio(self, other): argument
206 old_a, old_b = other if other else (Int(0), Int(0))
211 def __add__(self, other): argument
212 return self.__class__(self.a + other.a, self.b + other.b)
214 def __sub__(self, other): argument
215 return self.__class__(self.a - other.a, self.b - other.b)
217 def __mul__(self, other): argument
218 return self.__class__(self.a * other.a, self.b + other.b)
220 def __lt__(self, other): argument
222 other_t = other.a.x/other.b.x if other.b.x else 1.0
223 return (self_t, self.a.x) < (other_t, other.a.x)
225 def __gt__(self, other): argument
226 return self.__class__.__lt__(other, self)
228 def __le__(self, other): argument
229 return not self.__gt__(other)
231 def __ge__(self, other): argument
232 return not self.__lt__(other)
320 def __add__(self, other): argument
324 + object.__getattribute__(other, k)