Skip to content
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

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

Open
putianyi889 opened this issue Aug 31, 2022 · 0 comments
Open

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

putianyi889 opened this issue Aug 31, 2022 · 0 comments

Comments

@putianyi889
Copy link

putianyi889 commented Aug 31, 2022

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

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