from math import exp, log

def teste(x):
	y1 = (1.0 + x)**32.0
	y2 = exp(log(1.0 + x) * 32.0)
	
	y_x = (1.0 + x)**32.0 - exp(log(1.0 + x) * 32.0)
	y_12 = y1 - y2
	
	print("x = %f, f(x) = %f, y1 - y2 = %f" % (x, y_x, y_12))
	print("int(x + 1) = %d, int(x + 1)**32 = %d" % (int(x + 1), int(x + 1)**32))
	print("y1 = %f, y2 = %f" % (y1, y2))
	print()

teste(0.0)
teste(1.0)
teste(2.0)
teste(3.0)