Last active
September 1, 2025 04:56
-
-
Save ohno/efeb382c4be77d7603ffca469ac0fc34 to your computer and use it in GitHub Desktop.
Rayleigh-Ritz method in J. Thijssen, Computational Physics 2nd edition, (Cambridge University Press, 2007)
This file contains hidden or 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
| using LinearAlgebra | |
| α = [13.00773, 1.962079, 0.444529, 0.1219492] | |
| S = [(π/(α[i]+α[j]))^(3/2) for i in keys(α), j in keys(α)] | |
| H = [3*π^(3/2)*α[i]*α[j]/(α[i]+α[j])^(5/2) - 2*π/(α[i]+α[j]) for i in keys(α), j in keys(α)] | |
| E, C = eigen(H, S) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
J. Thijssen, Computational Physics 2nd edition, (Cambridge University Press, 2007)