# Slow cubature

**URL:** https://discourse.julialang.org/t/slow-cubature/116120
**Category:** Numerics
**Tags:** performance, quadrature, hcubature
**Created:** [June 23, 2024, 8:27pm UTC](https://discourse.julialang.org/t/slow-cubature/116120 "2024-06-23T20:27:13Z")
**Posts on this page:** 1
**Showing post:** 11

<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: [June 24, 2024, 1:49pm UTC](https://discourse.julialang.org/t/slow-cubature/116120/11 "2024-06-24T13:49:29Z")

</div>

> [@e3c6](#):
>
> but it seems to support only 1-dimensional quadrature, there is no method for cubature.

For cubature you can just 1d quadrature rules along each dimension (a “tensor product” of 1d rules). See e.g. [Gauss quadrature in 3D with change of variables - #2 by stevengj](https://discourse.julialang.org/t/gauss-quadrature-in-3d-with-change-of-variables/113486/2)

---

_[View the full topic](https://discourse.julialang.org/t/slow-cubature/116120)._
