Gamma function
Implement one algorithm (or more) to compute the Gamma ($\Gamma$) function (in the real field only).
The Gamma function can be defined as:
$\Gamma(x) = \displaystyle\int_0^\infty t^{x-1}e^{-t} dt$
Test
{{test}}Console output
Use Cmd instead of Ctrl if you're on a Mac.
| g | Focus editor |
| Ctrl-Enter | Run the test with current code |
| Ctrl-Shift-K | Reset the editor |
| Ctrl-Shift-L | Clear console output |
| Ctrl-Shift-X | Show the solution |
| [ | Previous challenge |
| ] | Next challenge |
| T | Back to top page |
| ? | Show this dialog |
| ESC | Hide this dialog |
| Shift-ESC | Blur focus from editor |