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/2001-February/012860.html below:

[Python-Dev] troubling math bug under IRIX 6.5

[Python-Dev] troubling math bug under IRIX 6.5 [Python-Dev] troubling math bug under IRIX 6.5Tim Peters tim.one@home.com
Tue, 13 Feb 2001 14:47:54 -0500
[Flying Cougar Burnette]
> ...
> >>> 4 * math.exp(-0.5)
> Bus error (core dumped)

Now let's look at the important <wink> part:

> (tommy@mace)/u0/tommy/pycvs/python/dist/src$ ./python
> Python 2.1a2 (#2, Feb 13 2001, 09:49:17) [C] on irix6
                                                  ^^^^^

The first thing to try on any SGI box is to recompile Python with
optimization turned off.  After that confirms it's the compiler's fault, we
can try to figure out where it's screwing up.  Do either of these blow up
too?

>>> 4 * 0.60653065971263342
>>> 4.0 * math.exp(-0.5)

Reason for asking:  "NV_MAGICCONST = 4 * _exp(-0.5)/_sqrt(2.0)" is the first
time random.py does either of a floating multiply or an int-to-float
conversion.

> is it just me?

Yup.  So long as you use SGI software, it always will be <wink>.

and-i-say-that-as-an-sgi-shareholder-ly y'rs  - tim




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