On Mar 23, 12:57 pm, weralwolf <[email protected]> wrote:
> Hello, where my simple example of calculations corrections due to
> perturbation theory for hole with infinite walls. I thinks I didn't
> use all sympy features, so if it possible guide me.
> Source:http://pygments.org/demo/16998/

I think you forgot to put
from sympy import S

at the top.

Did I get it right that you calculate the ground state energy of the
1D infinite potential well of width $a$ with a perturbation which is
linear in $x$, up to second order in perturbation?

I think in general your code is fine. What you might want to do is
- have V an operator
- same for the unpertubed Hamiltonian H
- being able to write those operators in matrix form in a particular
basis
- find the basis which diagonalizes H
- use this basis to represent H and V in matrix forms
- compute perturbation theory to first, second, etc. order by looking
up the matrix forms
- make it general enough to handle degenerate cases

I think some of this is possible already, but I haven't looked deeply
into it.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to