Intersection points between TF1 and TH1


I am looking for a command to get automatically the x value of an intersection between TF1 and TH1 ?

Try to find the keyword “intersection” on the search field of this forum. There is some
posts with can help you. May be @moneta has some idea.

1 Like

There is no automatic way to get this in ROOT.
This posts can help you: TF1 intersection - #2 by brun
where you need to replace one of the TF1 with the TH1. Ini case of multiple interceptions the code above needs to be adapted and one need to search in different ranges for the multiple intersection points.


1 Like

In case of TH1, how to replace f2->EvalPar () ?


1 Like

Thank You !

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