added computeZinvFromGamma