(prec, maxexp, itr)
| 389 | |
| 390 | # If itr == None, test all combinations of digit lengths up to prec + 30 |
| 391 | def tern_incr_digits(prec, maxexp, itr): |
| 392 | if itr is None: |
| 393 | lst1 = range(prec+30) |
| 394 | lst2 = range(prec+30) |
| 395 | lst3 = range(prec+30) |
| 396 | else: |
| 397 | lst1 = sample(range(prec+30), itr) |
| 398 | lst2 = sample(range(prec+30), itr) |
| 399 | lst3 = sample(range(prec+30), itr) |
| 400 | for m in lst1: |
| 401 | for n in lst2: |
| 402 | for p in lst3: |
| 403 | x = from_triple(randsign(), ndigits(m), 0) |
| 404 | y = from_triple(randsign(), ndigits(n), 0) |
| 405 | z = from_triple(randsign(), ndigits(p), 0) |
| 406 | yield x, y, z |
| 407 | |
| 408 | |
| 409 | # Tests for the 'logical' functions |
no test coverage detected
searching dependent graphs…