I don't know, but maybe you can look into submitting a PR that adds cmath.gamma? (I would first create an issue on bugs.python.org where you can have more discussion about the PR.) Maybe when implementing it you'll find the reason why it isn't defined yet...

On Sun, Sep 8, 2019 at 1:45 PM <davidgmorillop@gmail.com> wrote:
Since the gamma function (see https://en.wikipedia.org/wiki/Gamma_function) is defined for complex numbers too, wouldn't it be normal to have it implemented on the `cmath` module? The `math` module has this function, but it doesn't support complex numbers (as expected). I know that others libraries such as scipy (on the `scipy.special` module), or the `mpmath` module already have what I'm requesting but since `cmath` module is the complementary of `math`.
I think that if others functions such as `sin`, `cos`, `sqrt` are implemented on both modules, why shouldn't gamma function?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/B62LJBHQAB4DVR2YU2ZHOTHVKGLGVSJY/
Code of Conduct: http://python.org/psf/codeofconduct/


--
--Guido van Rossum (python.org/~guido)
Pronouns: he/him/his (why is my pronoun here?)