Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
The position-space wavefunction of the hydrogen atom
ResourceFunction["HydrogenWavefunction"][{n,l,m},a,{r,θ,ϕ}] gives the wavefunction for the hydrogen atom with quantum numbers (n,l,m) and Bohr radius a as a function of the spherical coordinates r,θ and ϕ. | |
ResourceFunction["HydrogenWavefunction"][{n,l,m},a,{r,θ,ϕ},Z] gives the hydrogen-like wavefunction with nuclear charge Z. |
The hydrogen ground state wavefunction:
In[1]:= | ![]() |
Out[1]= | ![]() |
The squared magnitude of the wavefunction gives the probability distribution for finding the electron:
In[2]:= | ![]() |
Out[2]= | ![]() |
Plot radial dependence of a few wavefunctions:
In[3]:= | ![]() |
Out[3]= | ![]() |
Plot the polar dependence of one wavefunction at various radii:
In[4]:= | ![]() |
Out[4]= | ![]() |
Plot the electron probability density for various wavefunctions:
In[5]:= | ![]() |
Out[5]= | ![]() |
Verify the orthogonality property of HydrogenWavefunction:
In[6]:= | ![]() |
Out[6]= | ![]() |
Verify the normalization property of HydrogenWavefunction:
In[7]:= | ![]() |
Out[7]= | ![]() |
Verify that HydrogenWavefunction satisfies the time-independent Schrödinger equation:
In[8]:= | ![]() |
Out[8]= | ![]() |
Show a change of nuclear charge:
In[9]:= | ![]() |
Out[9]= | ![]() |
Plot hydrogen orbital densities:
In[10]:= | ![]() |
Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License