For each element of x, compute the quantile (the inverse of the CDF) at x of the chisquare distribution with n degrees of freedom.