Lanczos approximation: Difference between revisions

Content deleted Content added
Simple implementation: Python 2 to 3
Line 72:
z = complex(z)
if z.real < 0.5:
y = pi / (sin(pi*z) * gamma(1-z)) # Reflection formula
else:
z -= 1
Line 87:
"""
 
print (gamma(1))
print (gamma(5) )
print (gamma(0.5))
</source>