> As ddrake pointed out when reviewing Trac #9240, I had misunderstood
> the docstring of factorial() and so in Sage factorial(x) is in fact
> equal to gamma(x+1):
> 
> sage: factorial(5)
> 120
> sage: factorial(1/2)
> 1/2*sqrt(pi)
> sage: factorial(1/21)
> gamma(22/21)
> 
> Is this supposed to be the case?  If so then I will change the
> documentation of factorial() to make this clear.

My vote is to have factorial(n) = n(n-1)...2.1 whenever n is integer.

> sage: factorial(5)
> 120
> sage: factorial(6)
> 720

+1 


Cheers,

Florent

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