> Le 05/02/2011 20:08, Francois Bissey a écrit :
> >  > 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).
> >  > 
> >  > Look at the last comments in the bug : I'm supposed to have tracked
> >  > what was called exactly... but it turns out it leads to a
> >  > correct-functioning function :-(
> > 
> > You asked if you missed something in the ticket. My suggestion is to try
> > the various gamma to see if one matches the results you get.
> > If so you may have missed something in the chain. It's a kind of reverse
> > thinking.
> 
> Uh... that looks like a brute-force attack to the problem, which
> although guaranteed to work, is definitely inefficient.
> 
> Isn't sage deterministic? It must be possible to know exactly what is
> called when a command is typed!
> 
I like brute force :)
Anyway deterministic doesn't necessarily means predictable but I don't feel
we should expand into chaos theory here.

I am with Dima on the fact that it represent the same number. As to why 
you have a different answer when you execute Volker's test, a possibility
that occurs to me is that because sage's test is about a float could sage's
answer be cast back to a float before being displayed? 

I notice an earlier test in function/other.py is about gamma1(6) as an
integer and an integer is expected in return. Symbolic input return symbolic
output so a float as input should return a float.

Francois

This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

-- 
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

Reply via email to