integrate : wrong default values for atol and rtol in documentation.
Reported by Alain Lamy
BUG DESCRIPTION:
----------------
The help page for "integrate" says :
x=integrate(expr,v,x0,x1 [,atol [,rtol]])
...
atol
a real number (absolute error bound). Default value: 1e-8.
rtol
a real number, (relative error bound). Default value: 1e-14.
In fact, looking at the code :
function %x=integrate(%expr,%var,%x0,%x1,%ea,%er)
...
select rhs
case 4 then
%ea=1d-14;%er=1.d-8
This means that the correct description should be :
atol
a real number (absolute error bound). Default value: 1e-14.
rtol
a real number, (relative error bound). Default value: 1e-8.
By the way, that is more consistent with intg (provided the documentation is correct) :
ea
absolute error required on the result. Default value: 1.d-13.
er
relative error required on the result. Default value: 1.d-8.
Notes :
- why are the defaut values for intg and integrate not the same ?
- It should be checked that the documentation for intg is correct.
ERROR LOG:
----------
-
HOW TO REPRODUCE THE BUG:
-------------------------
-
OTHER INFORMATION:
------------------