Le 05/02/2011 11:44, Francois Bissey a écrit :
So gamma could be called from C, Cython, possibly mpmath, pynac or maxima.
I guess you could tests the results calling from mpmath or maxima.
I am guessing that SR(10.0r).gamma() will end up being a call to maxima to
compute gamma but I could be completely off track. But since it is also a
gamma computation it could be related to the previous computation of
gamma(6).
Here are a few computations :
sage: gamma(6.)
120.000000000000
sage: gamma(float(6))
119.99999999999997
sage: SR(6.0r).gamma()
119.99999999999997
sage: SR(6).gamma()
120
sage: SR(6.).gamma()
120.000000000000
Launching, from my sage directory :
LD_LIBRARY_PATH=./local/lib ./local/bin/maxima
I can write :
(%i1) gamma(6.);
(%o1) 120
(%i2) gamma(6.0000000000000000000000);
(%o2) 120.0
I've also been asked for some tests in the bug report ; I'll answer
there as soon as I'll have managed to run them.
Snark on #sage-devel
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org