# Volume integral in Julia?

**URL:** <https://discourse.julialang.org/t/volume-integral-in-julia/98085>\
**Category:** General Usage\
**Tags:** integral\
**Created:** [April 29, 2023, 1:21pm UTC](https://discourse.julialang.org/t/volume-integral-in-julia/98085 "2023-04-29T13:21:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 29, 2023, 1:27pm UTC](https://discourse.julialang.org/t/volume-integral-in-julia/98085/2 "2023-04-29T13:27:12Z")

</div>

> [@Ahmed\_Salih](#):
>
> Where it is possible to perform a volume integral using non-constant values in the limits?

For example, you can just use HCubature.jl with a change of variables to map the domain to a box. For example, see: [2D integration over non-rectangular domain using cubature - #7 by stevengj](https://discourse.julialang.org/t/2d-integration-over-non-rectangular-domain-using-cubature/2991/7)

(You could also do nested calls to a 1d quadrature routine like `quadgk`, though this requires some care for the tolerance of the inner integrals.)

---

_[View the full topic](https://discourse.julialang.org/t/volume-integral-in-julia/98085)._
