integral_as_sum(I, n, method) approximates the definite integral I
by a sum over n subintervals (a positive integer, or by default a
positive integer symbol) with the "midpoint", "left", "right" or
"trapezoid" rule, as SymPy's Integral.as_sum().
principal_value(I) is the Cauchy principal value of I, as SymPy's
Integral.principal_value().
Arguments
- I
An unevaluated
Integral()over one variable with limits.- n
The number of subintervals.
- method
The rule.
- evaluate
If
FALSE, return the unevaluatedSum.- ...
Passed to
sym_integrate().