New submission from Yash Aggarwal <aggarwal.yash2...@gmail.com>:

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 is:
1. for integer value, the function should work as it does and return integer 
result.

2. for float input, both integer and non-integer valued, the returned value 
should be a floating point number.

3. the input domain should be extended to all real numbers except negative 
integers.

Such generalized function would feel more mathematically consistent.

----------
components: Library (Lib)
messages: 332862
nosy: FR4NKESTI3N
priority: normal
severity: normal
status: open
title: Factorial should be able to evaluate float arguments
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35637>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to