[issue35637] Factorial should be able to evaluate float arguments

2019-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Mark. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue35637] Factorial should be able to evaluate float arguments

2019-01-02 Thread Mark Dickinson
Mark Dickinson added the comment: See related discussion in issue #33083. Are you aware that `math.gamma` and `math.lgamma` exist? These already provide the ability to compute the "factorial" of a non-integral input. I'd be opposed to extending math.factorial to accept non-integral floats.

[issue35637] Factorial should be able to evaluate float arguments

2019-01-02 Thread Yash Aggarwal
New submission from Yash Aggarwal : Factorial as of now accepts only integers or integral floats. I want to suggest extending the definition of float to accept all positive real numbers to be more consistent with general definition of factorial that uses gamma function. What I am proposing i