Example macro showcasing some special mathematical functions.
To execute the macro type in:
root[0] .x mathcoreSpecFunc.C
It will create a canvas with the representation of the tgamma, lgamma, erf and erfc functions.
void mathcoreSpecFunc() {
TF1 *f1a =
new TF1(
"f1a",
"ROOT::Math::tgamma(x)",0,20);
TF1 *f2a =
new TF1(
"f2a",
"ROOT::Math::lgamma(x)",0,100);
TF1 *f3a =
new TF1(
"f3a",
"ROOT::Math::erf(x)",0,5);
TF1 *f4a =
new TF1(
"f4a",
"ROOT::Math::erfc(x)",0,5);
}
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void Draw(Option_t *option="") override
Default Draw method for all objects.
- Author
- Andras Zsenei
Definition in file mathcoreSpecFunc.C.