Calculation of critical values of several probability distributions using standard numerical methods