2008/9/1 mabshoff <[EMAIL PROTECTED]>: > > Hi, > > this is a followup to the above thread. Mike Hansen wrote a doctest > for gp.py and we hit the following problem: > sage -t devel/sage/sage/interfaces/gp.py > ********************************************************************** > File "/Users/mabshoff/sage-3.1.2.alpha3/tmp/gp.py", line 522: > sage: gp.new_with_bits_prec(pi, 100) > Expected: > 3.1415926535897932384626433832795028842 > Got: > 3.141592653589793238462643383 > ********************************************************************** > 1 items had failures: > 1 of 3 in __main__.example_27 > ***Test Failed*** 1 failures. > For whitespace errors, see the file /Users/mabshoff/sage-3.1.2.alpha3/ > tmp/.doctest_gp.py > [4.1 s] > exit code: 1024 > > But notice the following: > > 32 bit: > > bash-3.2$ ./sage > ---------------------------------------------------------------------- > | SAGE Version 3.1.2.alpha3, Release Date: 2008-08-31 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > > sage: gp.new_with_bits_prec(pi, 100) > 3.141592653589793238462643383 > sage: gp.new_with_bits_prec(pi, 1000) > 3.141592653589793238462643383 > sage: gp.new_with_bits_prec(pi, 10000) > 3.141592653589793238462643383 > sage: gp.new_with_bits_prec(pi, 100000) > 3.141592653589793238462643383 > > 64 bit: > > [EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.1.2.alpha3$ ./ > sage > ---------------------------------------------------------------------- > | SAGE Version 3.1.2.alpha3, Release Date: 2008-08-31 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > > sage: gp.new_with_bits_prec(pi, 100) > 3.1415926535897932384626433832795028842 > sage: gp.new_with_bits_prec(pi, 1000) > 3.1415926535897932384626433832795028842 > sage: gp.new_with_bits_prec(pi, 10000) > 3.1415926535897932384626433832795028842 > sage: gp.new_with_bits_prec(pi, 100000000000000) > 3.1415926535897932384626433832795028842 > > I remember there being another ticket where the precision from pari > went a little nuts and I believe there is a patch by John Cremona.
Unfortunately not.... John But > the above seems either related or a similar bug. We are tracking the > issue at #4023 > > Cheers, > > Michael > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---