How can I get Y value in X point in TF1?

How can I get Y value in X point in TF1? I didn’t find this in ROOT tutorial and TF1 Class Reference.


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


TF1::Eval()

Something like that (if f is a TF1 *):

double x = 3.14;
double y;
y = f->Eval(x); // y = f(3.14)

Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.