[Numpy-discussion] Error in tanh for large complex argument
pav at iki.fi
Fri Jan 28 07:07:06 EST 2011
Fri, 28 Jan 2011 12:57:18 +0100, Mark Bakker wrote:
> Follow up:
> The behavior is correct for real argument:
> So maybe we should look there for good logic,
In the real case you can do "if (abs(z) > cutoff) return sgn(z)",
which is not the right thing to do for complex numbers.
Anyway, Python's cmath functions correctly, so I'm first going
to look there, and then at the glibc/gfortran implementation.
More information about the NumPy-Discussion