Get zeros of a function


I am looking for a routine to find the zeros of a TF1. I’ve seen that there exists TF1::GetMinimum() and TF1::DrawIntegral(), so in principle it should be possible to access the zeros of a function as the extrema of its primitive; then however I am not able to fetch the function corresponding to the primitive, which is drawn by DrawIntegral().

Is there a simple way to do this?

Thank you in advance

see :


So simple. Thanks a lot Rene.