Re: [sage-devel] factorial() and gamma()

2010-06-16 Thread William Stein
On Wednesday, June 16, 2010, Tom Coates wrote: > > > On 16 June, 07:48, rjf wrote: > >> By your reasoning, and for other domains we would have the following >> behavior: >> >> 1-2  --> error.    1 and 2 are both positive integers. In order to >> provide the answer -1, one must >> expand the domai

Re: [sage-devel] factorial() and gamma()

2010-06-15 Thread David Kirkby
On 16 June 2010 05:28, Tom Coates wrote: > > As ddrake pointed out in Trac #9248, even when x is in the symbolic > ring, factorial(x) is not simply calling gamma(x+1): > > sage: x=I; factorial(x) > 0.498015668118356 - 0.154949828301811*I > sage: gamma(x+1) > gamma(I + 1) > > So something strange i