Lanczos approximation: Difference between revisions

Content deleted Content added
Simple implementation: orthographic correction
No edit summary
Line 67:
z = complex(z)
 
# Reflection formula (edit: this use of reflection (thus the if-else structure) seems unnecessary and just adds more code to execute. it calls itself again, so it still needs to execute the same for loop)
# Reflection formula
if z.real < 0.5:
result = pi / (sin(pi*z) * gamma(1-z))