Module int_and_diff

Source

Functionsยง

diff
Returns the difference between successive elements of a 1-D array.
trapz
Returns the approximate integral of the curve defined by y and x using the trapezoidal method.
trapz_unit
Returns the approximate integral of the curve defined by y using the trapezoidal method. Assumes that x-values have unit spacing.