
quadcc(f, a, b, tol = .Machine$double.eps^0.5, ...)
f
.value
the value of the integral and
the relative error error
.
clenshaw_curtis
## Not run:
# ## Dilogarithm function
# flog <- function(t) log(1-t)/t
# quadcc(flog, 1, 0, tol = 1e-12)
# # 1.644934066848128 - pi^2/6 < 1e-13
# ## End(Not run)
Run the code above in your browser using DataLab