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
numeric_integrate(sin(x), x = 0..pi)In the solver,
Open in the solvernumeric_integrate(sin(x), x = 0..pi)gives1.9999999999999942.
Functions its examples use
- sin
Sine of an angle in radians.
Related functions
- 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.