slower but more numerically stable and accuate pdf / cdf calculations