# TF3 Integration Over Infinity

**URL:** <https://root-forum.cern.ch/t/tf3-integration-over-infinity/58592>\
**Category:** Newbie\
**Tags:** root\
**Created:** [March 19, 2024, 10:18pm UTC](https://root-forum.cern.ch/t/tf3-integration-over-infinity/58592 "2024-03-19T22:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denali\_Jah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/denali_jah/32/34137_2.png) [@Denali\_Jah](https://root-forum.cern.ch/u/Denali_Jah)\
**Post date:** [March 19, 2024, 10:18pm UTC](https://root-forum.cern.ch/t/tf3-integration-over-infinity/58592/1 "2024-03-19T22:18:59Z")

</div>

I am attempting to integrate over all space and am unfamiliar with the necessary syntax. The following is my current code. Could someone please explain how to do this properly?

```auto
TF3 * inter = new TF3("Integrator1",myFunc,-inf,+inf,-inf,+inf,-inf,+inf,5);
double holder = inter->Integral(-inf,+inf,-inf,+inf,-inf,+inf);

```

_ROOT Version:_ 6.28.04  
_Platform:_ Linux through Windows (Ubuntu)  
_Compiler:_ G++

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [March 20, 2024, 8:17am UTC](https://root-forum.cern.ch/t/tf3-integration-over-infinity/58592/2 "2024-03-20T08:17:33Z")

</div>

Hi Denali,

I think it’s not really possible to use ‘inf’ - we are still dealing with floating point numbers here. I would suggest to use values which are large enough for your function instead.

I hope this helps.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Denali\_Jah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/denali_jah/32/34137_2.png) [@Denali\_Jah](https://root-forum.cern.ch/u/Denali_Jah)\
**Post date:** [March 21, 2024, 5:25pm UTC](https://root-forum.cern.ch/t/tf3-integration-over-infinity/58592/3 "2024-03-21T17:25:11Z")

</div>

Okay, thank you, Danilo, for your time.

-Denali Jah
