2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,9 +1,16 @@
|
|||
Implement one algorithm (or more) to compute the [[wp:Gamma function|Gamma]] (<math>\Gamma</math>) function (in the real field only). If your language has the function as builtin or you know a library which has it, compare your implementation's results with the results of the builtin/library function.
|
||||
;Task:
|
||||
Implement one algorithm (or more) to compute the [[wp:Gamma function|Gamma]] (<math>\Gamma</math>) function (in the real field only).
|
||||
|
||||
If your language has the function as built-in or you know a library which has it, compare your implementation's results with the results of the built-in/library function.
|
||||
|
||||
The Gamma function can be defined as:
|
||||
|
||||
:<math>\Gamma(x) = \displaystyle\int_0^\infty t^{x-1}e^{-t} dt</math>
|
||||
:::::: <big><big> <math>\Gamma(x) = \displaystyle\int_0^\infty t^{x-1}e^{-t} dt</math></big></big>
|
||||
|
||||
This suggests a straightforward (but inefficient) way of computing the <math>\Gamma</math> through numerical integration.
|
||||
|
||||
|
||||
Better suggested methods:
|
||||
* [[wp:Lanczos approximation|Lanczos approximation]]
|
||||
* [[wp:Stirling's approximation|Stirling's approximation]]
|
||||
<br><br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue