ahh sorry, my fault
def f(x):
return float(x**x)
def integrate(a, b, interval):
area = 0.0
while (a < b):
area += float(f(a)*interval)
a+=interval
return area
print(integrate(1.0, 3.0, 0.5)) # Gives more exact
print(integrate(1.0, 3.0, 0.00001)) # Far away from exact