All computation of T_x now done on logarithmic scale to avoid numerical issues, then back transformed.