File talk:LogGamma 1.png

Incorrect branch cut
This function was computed using incorrectly chosen branch cuts, and therefore incorrectly shows zeros that do not exist. In Python, the incorrect call is. The correct call is. I will load a correctly computed function of log(Gamma(z)). A quick way to verify the incorrectness of the function is call to minimize the incorrectly function, which yields a nonexistent zero:

xf = scipy.optimize.minimize(lambda x: np.abs(np.log(sps.gamma(x[0]+x[1]*1j))), np.array([4.,4.]), method='Nelder-Mead', tol=1.e-12) print(np.log(sps.gamma(xf.x[0]+xf.x[1]*1j))) print(sps.loggamma(xf.x[0]+xf.x[1]*1j))

The correct function has a value of 2πi at this value, not 0 as incorrectly shown. Stsmith (talk) 13:08, 26 April 2017 (UTC)