# Boundary integral

**URL:** <https://root-forum.cern.ch/t/boundary-integral/17872>\
**Category:** ROOT\
**Created:** [July 4, 2014, 8:16pm UTC](https://root-forum.cern.ch/t/boundary-integral/17872 "2014-07-04T20:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 4, 2014, 8:33pm UTC](https://root-forum.cern.ch/t/boundary-integral/17872/2 "2014-07-04T20:33:15Z")

</div>

Well, a “brutal fix” would be to redefine your function:  
`if (x >= y) return f(x, y); else return 0;`  
and then integrate it from 0 to 1 in both dimensions (i.e. in a 2D rectangular region).  
Some warnings: [Creating TF1 from TGraph - #10 by Pepe\_Le\_Pew](https://root-forum.cern.ch/t/creating-tf1-from-tgraph/10522/10) and [Convolution of two TF1 - #8 by Pepe\_Le\_Pew](https://root-forum.cern.ch/t/convolution-of-two-tf1/23625/8)

BTW. Note that there’s a special “[Stat and Math Tool Support](http://root.cern.ch/phpBB3/viewforum.php?f=15)” forum here.

---

_[View the full topic](https://root-forum.cern.ch/t/boundary-integral/17872)._
