• Bug#263991: axiom: wrong calculation of sqrt(2.)

    From Camm Maguire@1:229/2 to Heiko Scheit on Wed Aug 11 17:00:13 2004
    From: [email protected]

    Greetings! Would you be willing to test an axiom build with a fix for
    this? Esp. comparing as many as possible bignum results like this
    against your mathematica?

    Take care,

    Heiko Scheit <[email protected]> writes:

    Package: axiom
    Version: 0.20040128-4
    Severity: normal


    axiom seems to have problems calculating sqrt(2). Using the following command

    echo "digits(DIGITS); sqrt(2.)" | axiom

    where DIGITS should be replaced by the numbers listed in the
    corresponding column below. In the table below the last digits of the
    output are shown in the second column. One can see that for DIGITS=121278-121280 the result is not correct. For 121290 digits the
    result is OK again. As reference the output of Mathematica is given
    in the last row.

    DIGITS | result
    --------------------------------
    121275 | 8347436383 149
    121276 | 8347436383 14897
    121277 | 8347436383 148974
    121278 | 8347436382 1263421
    121279 | 8347436382 9853356
    121280 | 8347436383 114184622
    121290 | 8347436383 1489743406 4670264
    --- | 8347436383 1489743406 467026400 (Mathematica output)



    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (101, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-686
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages axiom depends on:
    ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
    ii libgmp3 4.1.3-1 Multiprecision arithmetic library
    ii libncurses5 5.4-4 Shared libraries for terminal hand
    ii libreadline4 4.3-11 GNU readline and history libraries

    -- no debconf information





    --
    Camm Maguire [email protected] ==========================================================================
    "The earth is but one country, and mankind its citizens." -- Baha'u'llah


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From [email protected]@1:229/2 to Camm Maguire on Thu Aug 12 17:10:13 2004
    On Wed, 11 Aug 2004, Camm Maguire wrote:

    Greetings! Would you be willing to test an axiom build with a fix for
    this? Esp. comparing as many as possible bignum results like this
    against your mathematica?


    Unfortunately I don't have time right now. I can do some tests once
    the fixed version makes it into debian/testing.

    Cheers, Heiko



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Heiko Scheit@1:229/2 to All on Fri Aug 6 19:10:11 2004
    From: [email protected]

    Package: axiom
    Version: 0.20040128-4
    Severity: normal


    axiom seems to have problems calculating sqrt(2). Using the following
    command

    echo "digits(DIGITS); sqrt(2.)" | axiom

    where DIGITS should be replaced by the numbers listed in the
    corresponding column below. In the table below the last digits of the
    output are shown in the second column. One can see that for DIGITS=121278-121280 the result is not correct. For 121290 digits the
    result is OK again. As reference the output of Mathematica is given
    in the last row.

    DIGITS | result
    --------------------------------
    121275 | 8347436383 149
    121276 | 8347436383 14897
    121277 | 8347436383 148974
    121278 | 8347436382 1263421
    121279 | 8347436382 9853356
    121280 | 8347436383 114184622
    121290 | 8347436383 1489743406 4670264
    --- | 8347436383 1489743406 467026400 (Mathematica output)



    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (101, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-686
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages axiom depends on:
    ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libgmp3 4.1.3-1 Multiprecision arithmetic library ii libncurses5 5.4-4 Shared libraries for terminal hand ii libreadline4 4.3-11 GNU readline and history libraries

    -- no debconf information


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Camm Maguire@1:229/2 to Heiko Scheit on Sat Aug 7 00:40:06 2004
    From: [email protected]

    forwarded 263991 [email protected]
    thanks

    Tim, would you know anything about this?

    Take care,

    Heiko Scheit <[email protected]> writes:

    Package: axiom
    Version: 0.20040128-4
    Severity: normal


    axiom seems to have problems calculating sqrt(2). Using the following command

    echo "digits(DIGITS); sqrt(2.)" | axiom

    where DIGITS should be replaced by the numbers listed in the
    corresponding column below. In the table below the last digits of the
    output are shown in the second column. One can see that for DIGITS=121278-121280 the result is not correct. For 121290 digits the
    result is OK again. As reference the output of Mathematica is given
    in the last row.

    DIGITS | result
    --------------------------------
    121275 | 8347436383 149
    121276 | 8347436383 14897
    121277 | 8347436383 148974
    121278 | 8347436382 1263421
    121279 | 8347436382 9853356
    121280 | 8347436383 114184622
    121290 | 8347436383 1489743406 4670264
    --- | 8347436383 1489743406 467026400 (Mathematica output)



    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (101, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-686
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages axiom depends on:
    ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
    ii libgmp3 4.1.3-1 Multiprecision arithmetic library
    ii libncurses5 5.4-4 Shared libraries for terminal hand
    ii libreadline4 4.3-11 GNU readline and history libraries

    -- no debconf information





    --
    Camm Maguire [email protected] ==========================================================================
    "The earth is but one country, and mankind its citizens." -- Baha'u'llah


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)