# Exact integral of a polynomial over a simplex

**URL:** https://discourse.julialang.org/t/exact-integral-of-a-polynomial-over-a-simplex/91132
**Category:** General Usage
**Tags:** polynomials, integral
**Created:** [December 2, 2022, 9:25am UTC](https://discourse.julialang.org/t/exact-integral-of-a-polynomial-over-a-simplex/91132 "2022-12-02T09:25:22Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [December 2, 2022, 8:41pm UTC](https://discourse.julialang.org/t/exact-integral-of-a-polynomial-over-a-simplex/91132/4 "2022-12-02T20:41:50Z")

</div>

> [@\_stla](#):
>
> By the way, does there exist a Julia package for integration of an arbitrary function over a simplex?

Well, you could always do it via a coordinate transformation to a hypercube, at which point you could call HCubature.jl or similar (which has the advantage of being an adaptive scheme rather than fixed-order, though there are [published](https://www.math.wsu.edu/faculty/genz/papers/simplex.pdf) works on [adaptive quadrature for simplices](https://vtechworks.lib.vt.edu/handle/10919/28699)).

See also [Integral of a function inside non-rectangular domain - #9 by stevengj](https://discourse.julialang.org/t/integral-of-a-function-inside-non-rectangular-domain/72132/9)

---

_[View the full topic](https://discourse.julialang.org/t/exact-integral-of-a-polynomial-over-a-simplex/91132)._
