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

Dirac equation for hyrdogen atom #10

Open
ohno opened this issue Dec 30, 2023 · 0 comments
Open

Dirac equation for hyrdogen atom #10

ohno opened this issue Dec 30, 2023 · 0 comments

Comments

@ohno
Copy link
Owner

ohno commented Dec 30, 2023

Implement the module of :DiracHyrdogen. Find an appropriate reference from the candidates or Wikipedia.

The spherical harmonics have already been used in the hydrogen atom.

# Spherical Harmonics
function Y(θ, φ; l=0, m=0)
N = (im)^(m+abs(m)) * sqrt( (2*l+1)*factorial(l-Int(abs(m))) / (2*factorial(l+Int(abs(m)))) )
return N * P(cos(θ),n=l,m=Int(abs(m))) * exp(im*m*φ) / sqrt(2*π)
end
# Associated Legendre Polynomials
P(x; n=0, m=0) = (1//2)^n * (1-x^2)^(m//2) * sum(j -> (-1)^j * factorial(2*n-2*j) // (factorial(j) * factorial(n-j) * factorial(n-2*j-m)) * x^(n-2*j-m), 0:Int(floor((n-m)/2)))

@ohno ohno added enhancement New feature or request new model and removed enhancement New feature or request labels Jan 8, 2024
@ohno ohno added enhancement New feature or request new model and removed new model enhancement New feature or request labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant