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

Wigner3j evaluate to nan for Wigner3j(50,1/2,49.5,50,-1/2,-49.5) #39

Closed
zzpwahaha opened this issue Mar 15, 2020 · 1 comment
Closed
Assignees
Labels

Comments

@zzpwahaha
Copy link

zzpwahaha commented Mar 15, 2020

In the calculation of Zeeman energy shift, the result is inf for atom.getZeemanEnergyShift( 50, 49.5, 49.5,0). Mainly because the CG(50,50,1/2,-1/2,49.5,49.5) spit out nan which is the result of Wigner3J.

Maybe try to lower the bound in line 60 in Winger3J
if (j1 > 50 or j2 > 50 or j3 > 50 or m1 > 50 or m2 > 50 or m3 > 50):

@nikolasibalic
Copy link
Owner

@zzpwahaha Many thanks for reporting this, finding core cause, and suggesting solution.
I lowered bound from 50 to 40 now, as suggested, and indeed now it works. New version (2.2.12) has just finished building and can be downloaded with pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants