Lines Matching refs:coeff
134 coeff = ndigits(maxprec)
136 coeff = ()
139 coeff = tuple(map(int, str(ndigits(maxprec))))
142 coeff = tuple(map(int, str(ndigits(maxprec))))
144 return (sign, coeff, exp)
146 def from_triple(sign, coeff, exp): argument
147 return ''.join((str(sign*coeff), indicator(), str(exp)))
158 for coeff in nines:
159 yield coeff
160 yield -coeff
161 yield from_triple(1, coeff, randrange(2*maxexp))
162 yield from_triple(-1, coeff, randrange(2*maxexp))
163 for coeff in pow10:
164 yield coeff
165 yield -coeff
175 for coeff in nines:
176 yield coeff, 1
177 yield -coeff, -1
178 yield 1, coeff
179 yield -1, -coeff
180 yield from_triple(1, coeff, randrange(2*maxexp)), 1
181 yield from_triple(-1, coeff, randrange(2*maxexp)), -1
182 yield 1, from_triple(1, coeff, -randrange(2*maxexp))
183 yield -1, from_triple(-1, coeff, -randrange(2*maxexp))
184 for coeff in pow10:
185 yield coeff, -1
186 yield -coeff, 1
187 yield 1, -coeff
188 yield -coeff, 1