JuliaMath / JuliaMath/HypergeometricFunctions.jl
_₂F₁(-n,1.5,2.5,2) loses accuracy for large n
Open
- Dominant language
- Julia
- Stars
- 76
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
These two expressions should be identical,
```julia
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:
```julia
plot(abs.([a c]), yaxis=:log, labels=["a" "c"])
```

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.