Skip to content

Commit 82d39e3

Browse files
Add output documentation on monte_carlo_integral
This small commit adds an OUTPUT description to the documentation of monte_carlo_integral. The wording of the output is essentially taken from numerical_integral.
1 parent 82e02a1 commit 82d39e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/calculus/integration.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ def monte_carlo_integral(func, xl, xu, size_t calls, algorithm='plain',
457457
* 'vegas' -- The VEGAS algorithm of Lepage is based on importance
458458
sampling.
459459
460+
OUTPUT:
461+
462+
A tuple whose first component is the approximated integral and whose second
463+
component is an error estimate.
464+
460465
EXAMPLES::
461466
462467
sage: x, y = SR.var('x,y')

0 commit comments

Comments
 (0)