Professional Documents
Culture Documents
In[6]:= (*Recalling the formula for the syysmtric soltion, as it gives the lowest energy,
SO the formula can be adopted to calculate the energy and eigenfuction*);
Out[40]= 2
-2
-4
-2
-4
In[35]:= k ' = Sqrt2 * mw hbar ^ 2 * V0 * e - 1.181984521282497 * 10 ^ - 20(*unit per meter*)
Out[35]= 5.31703 × 108
In[72]:= G = 1.0227272518951505 * cL
Out[72]= 2.40178
hamiltonian = - hbar ^ 2 2 * mb * Integrate[G * Exp[- k ' * z] * D[D[G * Exp[k ' * z], z], z],
{z, 2.5 * 10 ^ - 9, width + 2.5 * 10 ^ - 9}](*calculating the hamiltonian*)
Out[76]= - 1.08303 × 10-19 0. + width
In[109]:= Plot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e, {width, 0, 1 * 10 ^ - 09}
6. × 10-21
4. × 10-21
Out[109]= 2. × 10-21
-2. × 10-21
In[110]:= FindRoot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e ⩵ 0, {width, 2 * 10 ^ - 10}
Out[110]= width → 2.1014 × 10-10
In[112]:= Plot0.07180623258015606 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e, {width, 0, 1 * 10 ^ - 09}
6. × 10-21
4. × 10-21
2. × 10-21
Out[112]=
-2. × 10-21
-4. × 10-21
In[113]:= FindRoot0.07594183258015605 * e -
G ^ 2 * Exp- 2 * k ' * width + 2.5 * 10 ^ - 9 * hamiltonian + V0 * e ⩵ 0, {width, 2 * 10 ^ - 9}
Out[113]= width → 1.46324 × 10-9