In [1]:
import dvr_1d
import dvr_2d
import dvr_3d
%matplotlib inline
In [2]:
d1d = dvr_1d.SincDVR(npts = 30, L=10)
d2d = dvr_2d.DVR(dvr1d=d1d)
E, U = d2d.sho_test(num_eigs=5, precision=14)
We only need a few basis functions (i.e. a few points) to get perfect eigenvalues.
In [4]:
d1d = dvr_1d.HermiteDVR(npts=5)
d2d = dvr_2d.DVR(dvr1d=d1d)
E, U = d2d.sho_test(num_eigs=5, precision=14)
In [6]:
%matplotlib osx
In [8]:
d1d = dvr_1d.SincDVR(npts = 30, L=10)
d2d = dvr_2d.DVR(dvr1d=d1d)
E, U = d2d.sho_test(num_eigs=5, precision=10, uscale=3, doshow=True)
In [ ]: