Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread William Stein
On Thu, Dec 31, 2009 at 10:09 PM, Tim Daly wrote: > William Stein wrote: >> On Thu, Dec 31, 2009 at 9:13 PM, Tim Daly wrote: >> The output is used both for human use and for regression testing.  Its >> primary use is human -- it's an example in the Sage reference manual: >> >>    sage: float(e) >

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread William Stein
On Thu, Dec 31, 2009 at 10:09 PM, Tim Daly wrote: > William Stein wrote: >> On Thu, Dec 31, 2009 at 9:13 PM, Tim Daly wrote: >> The output is used both for human use and for regression testing.  Its >> primary use is human -- it's an example in the Sage reference manual: >> >>    sage: float(e) >

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Peter Jeremy
On 2009-Dec-31 17:50:05 -0200, Gonzalo Tornaria wrote: >gcc is actually inlining exp(1.0) to its correct value. The exp() from >the sun library is incorrect. Try this program instead: FreeBSD libm is derived from Sun's libm and also gets exp(1) 1ULP high on amd64 (on i386, exp() is written using

[sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread rjf
Assuring the correctness of the binary-to-decimal conversion of the sage output routines can and should be done separately from testing the exp() function. That should be fairly obvious. I am amazed by your insistence that this kind of decimal output should be used in regression testing. Certainly

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Tim Daly
William Stein wrote: > On Thu, Dec 31, 2009 at 9:13 PM, Tim Daly wrote: > >> Dr. David Kirkby wrote: >> >>> rjf wrote: >>> >>> On Dec 31, 11:15 am, "Dr. David Kirkby" wrote: >> RJF >> >> > The point you are missing is t

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread William Stein
On Thu, Dec 31, 2009 at 9:13 PM, Tim Daly wrote: > Dr. David Kirkby wrote: >> rjf wrote: >> >>> On Dec 31, 11:15 am, "Dr. David Kirkby" >>> wrote: >>> >>> > RJF > The point you are missing is that we want to compare the output what Sage prints to a human. >>> The

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Tim Daly
Dr. David Kirkby wrote: > rjf wrote: > >> On Dec 31, 11:15 am, "Dr. David Kirkby" >> wrote: >> >> RJF >>> The point you are missing is that we want to compare the output what Sage >>> prints >>> to a human. >>> >>> >> The point you are missing is that the followi

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Dr. David Kirkby
rjf wrote: > > On Dec 31, 11:15 am, "Dr. David Kirkby" > wrote: > >>> RJF >> The point you are missing is that we want to compare the output what Sage >> prints >> to a human. >> > > The point you are missing is that the following item, which presumably > could be printed by Sage, > is perfect

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2009-12-31 Thread ma...@mendelu.cz
On 31 pro 2009, 09:22, "ma...@mendelu.cz" wrote: > > Does not help either. Does not help even if I use the install script in sagenb sources directory to install changewd version. Any other idea? Many thanks Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsu

[sage-devel] sage 4.3 compile error Unknown compiler flag: --incref-local-binop

2009-12-31 Thread Rado
Hello, I am trying to compile Sage 4.3 (using ./sage -upgrade) and I get the following error: ... python `which cython` --embed-positions --incref-local-binop -I/home/ rado/sage/devel/sage-main -o sage/libs/linbox/linbox.cpp sage/libs/ linbox/linbox.pyx Unknown compiler flag: --incref-local-binop

[sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread rjf
On Dec 31, 11:15 am, "Dr. David Kirkby" wrote: > > RJF > > The point you are missing is that we want to compare the output what Sage > prints > to a human. > The point you are missing is that the following item, which presumably could be printed by Sage, is perfectly readable to a human: 612

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Gonzalo Tornaria
On Wed, Dec 30, 2009 at 10:38 PM, Dr. David Kirkby wrote: > Em, This is very odd.  exp(1) gives a different result on SPARC if you build > with gcc or Sun Studio. GCC is correct, and Sun Studio is wrong. Yet Sage on > 't2' was build with gcc, not Sun Studio. gcc is actually inlining exp(1.0) to i

Re: [sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Dr. David Kirkby
rjf wrote: > You guys could eliminate one (I suspect major) source of confusion by > not printing the numbers in decimal and reading them back in from > character strings. > > You can read/write exact hexadecimal 64-bit floating-point binary > numbers. > or you can write them out as X base you c

[sage-devel] Re: doctest failures due to rounding errors on Solaris.

2009-12-31 Thread rjf
You guys could eliminate one (I suspect major) source of confusion by not printing the numbers in decimal and reading them back in from character strings. You can read/write exact hexadecimal 64-bit floating-point binary numbers. or you can write them out as X X 2^ without any error or possible

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Dr. David Kirkby
Robert Bradshaw wrote: > On Dec 30, 2009, at 4:38 PM, Dr. David Kirkby wrote: > >> Robert Bradshaw wrote: >>> ** >>> File "/rootpool2/local/kirkby/sage-4.3/devel/sage/sage/symbolic/ >>> pynac.pyx", line >>> 1276: >

Re: [sage-devel] doctest failures due to rounding errors on Solaris.

2009-12-31 Thread Robert Bradshaw
On Dec 30, 2009, at 4:38 PM, Dr. David Kirkby wrote: > Robert Bradshaw wrote: >> ** >> File "/rootpool2/local/kirkby/sage-4.3/devel/sage/sage/symbolic/ >> pynac.pyx", line >> 1276: >> sage: py_exp(float(1

[sage-devel] Re: bug in sagenb - deleting and stopping worksheet does not work

2009-12-31 Thread ma...@mendelu.cz
THnks for your suggestions, On 31 pro, 04:26, Pat LeSmithe wrote: > On 12/30/2009 01:31 PM, ma...@mendelu.cz wrote: > > > I did more tests - Sage 4.2. is the last version where deleting and > > stopping workseehts via buttons from "Home" folder works for me. > > One or more of these problems may