Qu

quad_info

Builtin index · Signal processing

quad_info(f, a, b, [tol=1e-10], [maxdepth=60])

Input: f, a, b, tol, maxdepth · Output: no output

What it is

quad returning a record {value, error, nfev, intervals, status} instead of failing: error is the estimated absolute error, nfev the number of evaluations of f, status is "ok", "max_depth", "max_intervals" or "roundoff" (the interval can no longer be split in floating point).

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
quad_info(f, a, b, [tol=1e-10], [maxdepth=60])
f numberquad returning a record {value, error, nfev, intervals, status} instead of failing: error is the estimated absolute error, nfev the number of evaluations of f, status is "ok", "max_depth", "max_intervals" or "roundoff" (the interval can no longer be split in floating point).
a numberquad returning a record {value, error, nfev, intervals, status} instead of failing: error is the estimated absolute error, nfev the number of evaluations of f, status is "ok", "max_depth", "max_intervals" or "roundoff" (the interval can no longer be split in floating point).
b —not documented yet
tol optional (default 1e-10)not documented yet
maxdepth optional (default 60)not documented yet
not documented yet—

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.