On Wed, Dec 30, 2009 at 10:38 PM, Dr. David Kirkby <david.kir...@onetel.net> 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 its correct value. The exp() from the sun library is incorrect. Try this program instead: #include <math.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { double x = 1.0; if (argc>1) x = atof(argv[1]); printf("%.16lf\n",exp(x)); } Best, Gonzalo -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org