Skip to content

Commit

Permalink
Merge pull request #13295 from ArifAhmed1995/correct_intpoly_docs
Browse files Browse the repository at this point in the history
integrals/intpoly : Minor correction to docs
  • Loading branch information
gxyd committed Sep 11, 2017
2 parents ba63f8a + 7f94610 commit 3d98381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/modules/integrals/integrals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Principal method in this module is :func:`polytope_integrate`

- ``polytope_integrate(Polygon((0, 0), (0, 1), (1, 0)), x)`` returns the integral of :math:`x` over the triangle with vertices (0, 0), (0, 1) and (1, 0)

- ``polytope_integrate(cube, x + y + z)`` returns the integral of :math:`x + y + z` over the unit cube.
- ``polytope_integrate(unit_cube, x + y + z)`` returns the integral of :math:`x + y + z` over the unit cube.

References
----------
Expand All @@ -177,6 +177,7 @@ Single Polynomial::
7/24

List of specified polynomials::

>>> polytope_integrate(Polygon((0, 0), (0, 1), (1, 0)), [3, x*y + y**2, x**4], max_degree=4)
4 2
{3: 3/2, x : 1/30, x*y + y : 1/8}
Expand All @@ -185,7 +186,6 @@ List of specified polynomials::
{1.125: 9/16, x: 1/6, x : 1/12, 6.89*x : ----, x : 1/30, x*y + y : 1/8}
2000


Computing all monomials up to a maximum degree::

>>> polytope_integrate(Polygon((0, 0), (0, 1), (1, 0)),max_degree=3)
Expand Down

0 comments on commit 3d98381

Please sign in to comment.