From www.cgsd.com/papers/gamma.html