Xin, Peixing wrote:
On certain platform, expm1() is implemented as exp() minus 1. To calculate
expm1(-1420.0), that will call exp(-1420.0) then substract 1. You know,
exp(-1420.0) will underflow to zero and errno is set to ERANGE. As a
consequence the errno keeps set there when expm1() returns the correct result
-1.

This sounds like a bug in that platform's implementation of
expm1() to me. Which platform is it?

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to