Inverse function of Prob

can I find, under Root, the inverse function of TMath::Prob(chi2,Ndof)?
Should be done like TMath::Inverse(prob, Ndof) , returning a chi^2 value.

the inverse function of the cumulative of the chi2 is ROOT::Math::chisquared_quantile(prob, ndf).
TMath::Prob is the complement of the chi2 cumulative distribution (right tail integral), so the inverse function is

ROOT::Math::chisquared_quantile_c(prob, ndf)

See also … tFunc.html
or in chapter 13 of the User guide ( )

These functions are defined in the header file “Math/DistFunc.h”