# Integral with dependent bounds

**URL:** <https://root-forum.cern.ch/t/integral-with-dependent-bounds/54028>\
**Category:** Roofit and RooStats\
**Created:** [March 14, 2023, 7:36pm UTC](https://root-forum.cern.ch/t/integral-with-dependent-bounds/54028 "2023-03-14T19:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 16, 2023, 8:49am UTC](https://root-forum.cern.ch/t/integral-with-dependent-bounds/54028/4 "2023-03-16T08:49:43Z")

</div>

For available “quadrature” routines see:

> [@Double integration with dependent bounds](https://root-forum.cern.ch/t/double-integration-with-dependent-bounds/54017/4):
>
> [ROOT Manual → Functional parts → Mathematical libraries → MathCore library → Numerical integration](https://root.cern/manual/math/#numerical-integration)

See also the “[MathCore](https://root.cern.ch/doc/master/group__MathCore.html)” and “[MathMore](https://root.cern.ch/doc/master/group__MathMore.html)” documentation.

In principle, ROOT internally often uses:

- for “special functions”: [GSL → Special Functions](https://www.gnu.org/software/gsl/doc/html/specfunc.html)

- for “quadrature”: [GSL → Numerical Integration](https://www.gnu.org/software/gsl/doc/html/integration.html) and [GSL → Monte Carlo Integration](https://www.gnu.org/software/gsl/doc/html/montecarlo.html)

If you find some appropriate routine in [GSL (GNU Scientific Library)](https://www.gnu.org/software/gsl/doc/html/index.html), you should be able to use it in ROOT.

BTW. [The integrals over “`dc`” can be calculated analytically](https://www.wolframalpha.com/input?i2d=true&i=integrate+Divide%5B1%2CxSqrt%5B1%2Bx%5D%5D). In principle, one should use clean “analytical formulas” whenever possible.

---

_[View the full topic](https://root-forum.cern.ch/t/integral-with-dependent-bounds/54028)._
