_₂F₁(-n,1.5,2.5,2) loses accuracy for large n
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the two Julia expressions for n=0:100 and comparing their values on a logarithmic plot. Inspect the implementation and numerical path for _₂F₁(-n,1.5,2.5,2); done means the expression retains accuracy for large n and agrees with the equivalent formulation.
Written by the indexing model from the issue text.
Description
These two expressions should be identical,
a=[2*sqrt(2)/(n+1)*_₂F₁(1,n+2.5,n+2,-1)+(-1)^n*beta(n+1,1.5) for n=0:100]
c=[2*sqrt(2)*(-1)^n*beta(1.5,1)*_₂F₁(-n,1.5,2.5,2) for n=0:100]
But it turns out that a is more accurate:
plot(abs.([a c]), yaxis=:log, labels=["a" "c"])

- Dominant language
- Julia
- Stars
- 76
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaMath/HypergeometricFunctions.jl
-
tagbot-manual
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
JuliaMath/HypergeometricFunctions.jl#89 · 1 comment ·
-
3F2 returns NaNsOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaMath/HypergeometricFunctions.jl#79 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
JuliaMath/HypergeometricFunctions.jl#73 · 2 comments ·
All issues in JuliaMath/HypergeometricFunctions.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
JuliaComputing/jh#63 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SciML/BoundaryValueDiffEq.jl#649 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
SciML/NonlinearSolve.jl#1336 ·
Maintainers usually reply within 1 day