[v, ier, nfun] = quad ("f", a, b)
[v, ier, nfun] = quad ("f", a, b, tol)
[v, ier, nfun] = quad ("f", a, b, tol, sing)
Integrate a nonlinear function of one variable using Quadpack.
Where the first argument is the name of the function to call to
compute the value of the integrand. It must have the form
y = f (x)
where y and x are scalars.
The second and third arguments are limits of integration. Either or
both may be infinite. The optional argument tol specifies the desired
accuracy of the result. The optional argument sing is a vector of
values at which the integrand is singular.
Tolerances and other options for
quad may be specified using the