Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inc_gamma_upper(0,x) fails #2

Open
hsgg opened this issue Oct 2, 2017 · 1 comment
Open

inc_gamma_upper(0,x) fails #2

hsgg opened this issue Oct 2, 2017 · 1 comment
Assignees

Comments

@hsgg
Copy link

hsgg commented Oct 2, 2017

Calculating the incomplete gamma function with a positive lower bound x=0.5 can fail:

julia> inc_gamma_upper(0.0, 0.5)
ERROR: IncGammaBeta.SpecfunUndefinedError
Stacktrace:
 [1] incGamma(::Float64, ::Float64, ::Bool, ::Bool) at /home/hsgg/.julia/v0.6/IncGammaBeta/src/specfun.jl:173
 [2] inc_gamma_upper(::Float64, ::Float64) at /home/hsgg/.julia/v0.6/IncGammaBeta/src/specfun.jl:695
 [3] macro expansion at ./REPL.jl:97 [inlined]
 [4] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73

With Mathematica I get the result: 0.559774

@jkovacic jkovacic self-assigned this Oct 20, 2017
@jkovacic
Copy link
Owner

Thanks for the bug report.
The algorithm doesn't handle cases when the first arg. is 0.
Will try to fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants