Skip to content

Commit

Permalink
close #69
Browse files Browse the repository at this point in the history
This excludes the case where the 3-term recurrence collapses to a 2-term recurrence. This was caught by a previous test, so a specific test is added
  • Loading branch information
MikaelSlevinsky committed Jul 27, 2023
1 parent 1ed19b0 commit 5608f22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "HypergeometricFunctions"
uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
version = "0.3.22"
version = "0.3.23"

[deps]
DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
Expand Down
2 changes: 1 addition & 1 deletion src/gauss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function _₂F₁general2(a, b, c, z; kwds...)
elseif abs(z-0.5) > 0.5
if isapprox(a, b) && !isapprox(c, a+0.5)
return gamma(c)/gamma(a)/gamma(c-a)*(0.5-z)^(-a)*_₂F₁continuationalt(a, c, 0.5, z; kwds...)
elseif a-b
elseif a-b && !isapprox(2c, a+b+1)
return gamma(c)*(gamma(b-a)/gamma(b)/gamma(c-a)*(0.5-z)^(-a)*_₂F₁continuation(a, a+b, c, 0.5, z; kwds...) + gamma(a-b)/gamma(a)/gamma(c-b)*(0.5-z)^(-b)*_₂F₁continuation(b, a+b, c, 0.5, z; kwds...))
end
end
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ end
j += 1
end
end
@test _₂F₁general(-0.4, 0.4, 0.5, 0.75+0.75im) _₂F₁general2(-0.4, 0.4, 0.5, 0.75+0.75im)
end

@testset "Test that _₂F₁ is inferred for Float32 arguments" begin
Expand Down

2 comments on commit 5608f22

@MikaelSlevinsky
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/88477

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.23 -m "<description of version>" 5608f220320bdcff63f2d8147c768fe6935c9da3
git push origin v0.3.23

Please sign in to comment.