Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
4
Task/Gamma-function/Julia/gamma-function-2.julia
Normal file
4
Task/Gamma-function/Julia/gamma-function-2.julia
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
gamma_quad(t) = quadgk(x -> x^(t-1)*exp(-x), zero(t), inf(t), reltol=100*eps(t))[1]
|
||||
|
||||
# generalize to handle arrays of inputs:
|
||||
@vectorize_1arg Real gamma_quad
|
||||
Loading…
Add table
Add a link
Reference in a new issue