On Aug 1, 2007, at 1:26 PM, Jonathan Bober wrote:
> On Wed, 2007-08-01 at 12:29 -0700, Justin C. Walker wrote:
[snip]
> Since the time with the self-compiled code is so similar to the time
> with the sage-compiled code, I would guess that you are linking to the
> sage mpfr library, which wasn't compiled with -O2 (or at least linking
> to another version of mpfr that wasn't compiled with optimizations.)

Oops.  You're right.  I forgot about this part of the discussion.   
I'll get an 'mpfr' library compiled with more optimization.

Has anyone looked at the differences between the various optimization  
choices?  On Mac OS X, there is "-Ox", for x in {0,1,2,3,s,z}, "-O",  
and "-fast".

> Also, did you double check the answers? If my code is giving the wrong
> answer on your computer, there could be some processor specific bug
> somewhere.

I'm verifying this now, but I think that my claim (that Mathematica  
and sage agreed and computed a different value than your code) is a  
typo.  It should have said 'sage', which at the time was using Pari  
(and according to Stein, was generating incorrect results).

Yup: all versions of Mathematica (5.2, 6.0, 6.0.1) agree with you :-}

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
  Well, except the weasel."
       - Homer J Simpson
--------



--~--~---------~--~----~------------~-------~--~----~
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to