integrate — integration of an expression by quadrature
x=integrate(expr,v,x0,x1 [,atol [,rtol]])
Character string defining a Scilab expression.
Character string, the integration variable name)
real number, the lower bound of integration
vector of real numbers, upper bounds of integration
real number (absolute error bound) Default value: 1.-8
real number, (relative error bound) Default value: 1e-14
vector of real numbers, the integral value for each
x1(i)
.
computes : for
i=1:size(x1,'*')
Where is given by the expression
expr
.
The evaluation hopefully satisfies following claim for accuracy:
abs(I-x)<= max(atol,rtol*abs(I))
where
I
stands for the exact value of the integral.