Skip to content

_₂F₁ errors when a == c and z > 1 #86

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

Open
simeonschaub opened this issue Mar 10, 2025 · 0 comments
Open

_₂F₁ errors when a == c and z > 1 #86

simeonschaub opened this issue Mar 10, 2025 · 0 comments

Comments

@simeonschaub
Copy link

The following throws a DomainError, it's in a different branch than #75 though:

julia> _₂F₁(-1, 0, -1, 2.0)
ERROR: DomainError with -2.0:
log1p was called with a real argument < -1 but will only return a complex result if called with a complex argument. Try log1p(Complex(x)).
Stacktrace:
 [1] throw_complex_domainerror_neg1(f::Symbol, x::Float64)
   @ Base.Math ./math.jl:37
 [2] log1p(x::Float64)
   @ Base.Math ./special/log.jl:364
 [3] _₂F₁(a::Int64, b::Int64, c::Int64, z::Float64; method::Symbol, kwds::@Kwargs{})
   @ HypergeometricFunctions ~/.julia/packages/HypergeometricFunctions/QX81g/src/gauss.jl:11
 [4] _₂F₁(a::Int64, b::Int64, c::Int64, z::Float64)
   @ HypergeometricFunctions ~/.julia/packages/HypergeometricFunctions/QX81g/src/gauss.jl:6
 [5] top-level scope
   @ REPL[29]:1

I believe this is still well-defined, Mathematica just evaluates it to 1

MikaelSlevinsky added a commit that referenced this issue Mar 14, 2025
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

1 participant