Qu

cumtrapz

Builtin index · Signal processing

cumtrapz(y), cumtrapz(x, y)

Input: y · Output: no output

What it is

Running trapezoid integral: the result has the shape of y, starts at 0, and its last element equals trapz. A matrix is accumulated down each column (dimension 1), giving a matrix of the same shape.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
cumtrapz(y), cumtrapz(x, y)
y matrixnot documented yet
not documented yetA matrix is accumulated down each column (dimension 1), giving a matrix of the same shape.

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

and general minimization. Only a user-defined function (by name, the same convention pmap/spawn use) can be the target of any of these — not a builtin. fzero(f, a, b, [tol=1e-10], [max_iter=100]) — Brent's method: robust root finding (guaranteed convergence given a bracket [a,b] where f changes sign), no derivative needed. The "something better than plain bisection" choice.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.