def integrate(f, a, b, steps, meth):
    h = ((b - a) / steps)
    ival = (h * sum((meth(f, (a + (i * h)), h) for i in range(steps))))
    return ival
def integrate(f, a, b, steps, meth):
    h = ((b - a) / steps)
    ival = (h * sum((meth(f, (a + (i * h)), h) for i in range(steps))))
    return ival