June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1 +1 @@
|
|||
gamma(x)
|
||||
@show gamma(1)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
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
|
||||
using QuadGK
|
||||
gammaquad(t::Float64) = first(quadgk(x -> x ^ (t - 1) * exp(-x), zero(t), Inf, reltol = 100eps(t)))
|
||||
@show gammaquad(1.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue