Ask Your Question

Revision history [back]

Using a lambda function also works:

sage: integral_numerical(lambda x: bessel_I(0, x), (0, 1))
(1.0865210970235897, 1.206280738656573e-14)

Besides numerical integration, lambda functions are often helpful for plotting.