# Using the skew normal distribution or Owen's T function

**URL:** <https://root-forum.cern.ch/t/using-the-skew-normal-distribution-or-owens-t-function/38132>\
**Category:** Newbie\
**Created:** [February 24, 2020, 11:15pm UTC](https://root-forum.cern.ch/t/using-the-skew-normal-distribution-or-owens-t-function/38132 "2020-02-24T23:15:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwruss](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Post date:** [February 24, 2020, 11:15pm UTC](https://root-forum.cern.ch/t/using-the-skew-normal-distribution-or-owens-t-function/38132/1 "2020-02-24T23:15:16Z")

</div>

Hello,

I was looking into using either the skew normal distribution or Owen’s T function with `TF1` and I found your page [https://sft.its.cern.ch/jira/browse/ROOT-5106](https://sft.its.cern.ch/jira/browse/ROOT-5106). From the page it looks like it should now be supported in ROOT’s TMath? If so, I am using ROOT v6.18/00 but I am having difficulty finding documentation on using these functions. Installing the Boost library and imitating steps found [here](https://caiorss.github.io/C-Cpp-Notes/Root-cern-repl.html), I was able to

```auto
root [0] #include <boost/math/special_functions/erf.hpp>
root [1] using namespace boost::math;
root [2] TF1 skewNormal("skewNormal", "pdf(skew_normal([0], [1], [2]), x)")
(TF1 &) Name: skewNormal Title: pdf(skew_normal([0], [1], [2]), x)

```

But is this the extent that the Boost library is used in ROOT?

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 25, 2020, 2:34pm UTC](https://root-forum.cern.ch/t/using-the-skew-normal-distribution-or-owens-t-function/38132/2 "2020-02-25T14:34:54Z")

</div>

Hi,

Your code will work fine if you include the right header file from Boost and you have it in your include path.  
For example:

```auto
#include <boost/math/distributions/skew_normal.hpp>
using namespace boost::math;
TF1 skewNormal("skewNormal", "pdf(skew_normal([0], [1], [2]), x)",-3,3);
skewNormal.SetParameters(0,1,2); 
skewNormal.Draw();

```

Or in the case of the Owens T function:

```auto
#include "boost/math/special_functions/owens_t.hpp"
using namespace boost::math;
TF2 owensT("owenst","owens_t(x,y)",-5,5,-5,5);
owensT.Draw("CONTZ");

```

As far you include the correct files that can be parsed by Cling you can use any external functions.  
In some cases if the implementation is in a library, you might need to load that library

Lorenzo
