A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-April/157092.html below:

[Python-Dev] checking "errno" for math operaton is safe to determine the error status?

[Python-Dev] checking "errno" for math operaton is safe to determine the error status? [Python-Dev] checking "errno" for math operaton is safe to determine the error status?Xin, Peixing Peixing.Xin at windriver.com
Sun Apr 14 21:42:11 EDT 2019
VxWorks RTOS with 3rd party math lib.

Thanks,
Peixing


-----Original Message-----
From: Python-Dev [mailto:python-dev-bounces+peixing.xin=windriver.com at python.org] On Behalf Of Greg Ewing
Sent: Friday, April 12, 2019 1:45 PM
To: python-dev at python.org
Subject: Re: [Python-Dev] checking "errno" for math operaton is safe to determine the error status?

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 at python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/peixing.xin%40windriver.com
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4