Created
August 30, 2012 06:49
-
-
Save certik/3523473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt | |
c=137.03599907 | |
omega = 1. | |
l = 0 | |
# l = j - 1/2: | |
j = l + 0.5 | |
for n in range(1, 6): | |
print sqrt(omega * (2*(n-j)+1) * c**2 + c**4) - c**2 | |
# l = j + 1/2: | |
j = l - 0.5 | |
for n in range(1, 6): | |
print sqrt(omega * (2*(n+j)+3) * c**2 + c**4) - c**2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.999973375743 | |
1.99989350863 | |
2.99976040718 | |
3.99957407988 | |
4.99933453524 | |
1.99989350863 | |
2.99976040718 | |
3.99957407988 | |
4.99933453524 | |
5.99904178175 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment