Integrate along the given axis using the composite trapezoidal rule.
If x is provided, the integral is computed with respect to those sample
points. Otherwise, the samples are assumed to be evenly spaced with step
dx. Both x and dx may be arrays that broadcast against y.
Integrate along the given axis using the composite trapezoidal rule.
If
xis provided, the integral is computed with respect to those sample points. Otherwise, the samples are assumed to be evenly spaced with stepdx. Bothxanddxmay be arrays that broadcast againsty.