Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Floating-pointpow gives different results on different platforms #10010

Open
@ahaldane

Description

@ahaldane

This is a reminder that we have seen a few inconsistencies in the floating-pointpow function on linux vs windows vs darwin.

The problems:

  1. The operation10.**arange(308) on linux correctly gives the nearest IEEE float64 to all possible powers of 10, with unbiased rounding. In other words we have10.**np.float64(i) == np.float64('1e%d' %i) for alli. On some windows systems this is often not the case fori >= 23 (where float64 values are no longer integers), where it gives a slightly different value. I put a list of appveyor envs where this fails below marked with X. SeeENH: Use Dragon4 algorithm to print floating values #9941 (comment)
  2. The macpow function fails for2.**exp withexp >= 1024. SeeBUG: Fix casting from longdouble to long #9971 (comment)MAINT: Fix test_int_from_huge_longdouble on Darwin. #10000
   PYTHON=C:\Python27, PYTHON_VERSION=2.7, PYTHON_ARCH=32, SKIP_NOTAG=true, TEST_MODE=full   PYTHON=C:\Python36, PYTHON_VERSION=3.6, PYTHON_ARCH=32, TEST_MODE=fast X PYTHON=C:\Python27-x64, PYTHON_VERSION=2.7, PYTHON_ARCH=64, TEST_MODE=fast X PYTHON=C:\Python34-x64, PYTHON_VERSION=3.4, PYTHON_ARCH=64, TEST_MODE=fast X PYTHON=C:\Python36-x64, PYTHON_VERSION=3.6, PYTHON_ARCH=64, TEST_MODE=full   PYTHON=C:\Python27, PYTHON_VERSION=2.7, PYTHON_ARCH=32, SKIP_NOTAG=true, TEST_MODE=full   PYTHON=C:\Python34, PYTHON_VERSION=3.4, PYTHON_ARCH=32, SKIP_NOTAG=true, TEST_MODE=full   PYTHON=C:\Python35-x64, PYTHON_VERSION=3.5, PYTHON_ARCH=64, SKIP_NOTAG=true, TEST_MODE=full   PYTHON=C:\Python35, PYTHON_VERSION=3.5, PYTHON_ARCH=32, SKIP_NOTAG=true, TEST_MODE=full

fromthis test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp