scipy.integrate.cumtrapz

scipy.integrate.cumtrapz(y, x=None, dx=1.0, axis=-1)

Cumulatively integrate y(x) using samples along the given axis and the composite trapezoidal rule. If x is None, spacing given by dx is assumed.

Parameters :

y : array

x : array, optional

dx : int, optional

axis : int, optional

Specifies the axis to cumulate:

  • -1 –> X axis
  • 0 –> Z axis
  • 1 –> Y axis

See also

quad
adaptive quadrature using QUADPACK
romberg
adaptive Romberg quadrature
quadrature
adaptive Gaussian quadrature
fixed_quad
fixed-order Gaussian quadrature
dblquad
double integrals
tplquad
triple integrals
romb
integrators for sampled data
trapz
integrators for sampled data
cumtrapz
cumulative integration for sampled data
ode
ODE integrators
odeint
ODE integrators

Previous topic

scipy.integrate.trapz

Next topic

scipy.integrate.simps

This Page