trapezoid()
Returns the integral of function (a function of one variable) over interval (a sequence of length two containing the lower and upper limit of the integration interval), calculated using the trapezoidal rule using numtraps trapezoids.
Example:from Scientific.Functions.Romberg import romberg from Numeric import pi romberg(tan, (0.0, pi/3.0))
yields 0.693147180562
romberg()
Returns the integral of function (a function of one variable) over interval (a sequence of length two containing the lower and upper limit of the integration interval), calculated using Romberg integration up to the specified accuracy. If show is 1, the triangular array of the intermediate results will be printed.