Correct equations used for generic version of tgamma - equations should now match those used for igamma and the actual code. Fixes #4583.