[SciPy-dev] tanh(j*pi/2)

David Goldsmith d_l_goldsmith@yahoo....
Wed Jun 10 02:24:14 CDT 2009

--- On Wed, 6/10/09, Robert Kern <robert.kern@gmail.com> wrote:

> Ah, that's not the real issue here that I am suggesting to
> be
> documented. The result of cos(np.pi/2) is *not*
> theoretically 0. This
> is because np.pi is not exactly the transcendental real
> number pi.
> This has nothing to do with the quality of implementation
> of np.cos().
> The answer that is given is more accurate than 0.

Ah, OK, I see where you're coming from now.



More information about the Scipy-dev mailing list