Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

_₂F₁(-n,1.5,2.5,2) loses accuracy for large n

Open
#49 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
backend

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"])

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaMath/HypergeometricFunctions.jl

All issues in JuliaMath/HypergeometricFunctions.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.