- f is a function.
- I is an interval.

- dirtyintegral(f,I) computes an approximation of the integral of f on I.
- The interval must be bound. If the interval contains one of -Inf or +Inf, the result of dirtyintegral is NaN, even if the integral has a meaning.
- The result of this command depends on the global variables prec and points. The method used is the trapezium rule applied at n evenly distributed points in the interval, where n is the value of global variable points.
- This command computes a numerical approximation of the exact value of the integral. It should not be used if safety is critical. In this case, use command integral instead.
- Warning: this command is currently known to be unsatisfactory. If you really need to compute integrals, think of using an other tool or report a feature request to sylvain.chevillard@ens-lyon.org.

-0.54402111088936981340474766185137728168364301291621

> dirtyintegral(cos(x),[0;10]);

-0.54400304905152629822448058882475382036536298356281

> points=2000!;

> dirtyintegral(cos(x),[0;10]);

-0.54401997751158321972222697312583199035995837926892