Lines Matching refs:a
112 def __new__(cls, a=0, b=None): argument
113 if isinstance(a, Frac) and b is None:
114 return a
115 if isinstance(a, str) and b is None:
116 a, b = a.split('/', 1)
118 b = a
119 return super().__new__(cls, Int(a), Int(b))
122 return '%s/%s' % (self.a, self.b)
125 return float(self.a)
129 t = self.a.x/self.b.x if self.b.x else 1.0
155 return self.__class__(self.a + other.a, self.b + other.b)
158 return self.__class__(self.a - other.a, self.b - other.b)
161 return self.__class__(self.a * other.a, self.b + other.b)
164 self_t = self.a.x/self.b.x if self.b.x else 1.0
165 other_t = other.a.x/other.b.x if other.b.x else 1.0
166 return (self_t, self.a.x) < (other_t, other.a.x)
527 or (branches and r.branches.a < r.branches.b)):
575 elif branches and r.branches.a < r.branches.b:
693 r.lines.a < r.lines.b for r in results):
696 r.branches.a < r.branches.b for r in results):