I'm fairly new to Python but would like to use Euler's Gamma Function in a function I am writing. I'd prefer not to write it as an integral and was wondering if there's something I can import that easily defines the gamma function.
Thanks
Yes, you can. In the module math
there are special functions coded such as the Gamma function.
Look at here
I'd use scipy.special.gamma()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With