public static Object statTinv(Object[] args, XelContext ctx) throws MathException{
double p = CommonFns.toNumber(args[0]).doubleValue();
double degree_freedom = CommonFns.toNumber(args[1]).doubleValue();
DistributionFactory factory = DistributionFactory.newInstance();
TDistribution td = factory.createTDistribution(degree_freedom );
return UtilFns.validateNumber(td.inverseCumulativeProbability((1-p)));
}
/**
* Returns the weibull distribution
* @param args arguments