This is an automatically generated file.
Part 1
Part 2
def test_integer_powers(x, z, i, max_i):
"""Test z**k for k = i .. max_i."""
while True:
q = float(i)
if ultra_verbose:
print("test_int_pow with x, z, q = {:.17e} {:.17e} {:.4f}"
.format(x, z, q))
test_power_result(x, z, q)
Part 3
i += 1
x = z * x
# Stay within the range of exactly representable integers.
if x >= BIG_B_NTH or i > max_i: break
return
Part 4