Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Numerical integration (numeric_integrate)

Approximate a definite integral numerically.

How to write it

numeric_integrate(f, x = a..b)

f
The expression or function to work on. Takes an expression.
x = a..b
The variable and its bounds, written x = a..b. Takes a variable with its range.

Examples

  • ∫0πsin⁡(x) dx≈1.9999999999999942\displaystyle \int_{0}^{\pi} \sin(x) \, dx \approx 1.9999999999999942
    numeric_integrate(sin(x), x = 0..pi)

    In the solver, numeric_integrate(sin(x), x = 0..pi) gives 1.9999999999999942.

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • integrate

    Antiderivative of an expression, or its definite integral over a range.

  • residue

    Residue of an expression at a point.

  • limit

    Limit of an expression as a variable approaches a point.

  • total_diff

    Total derivative of an expression with respect to a variable.

  • laplacian

    Laplacian of an expression: the sum of its second partial derivatives.

  • certified_value

    An enclosure of a definite integral or a closed constant, with radius at most 10^-digits.