2011/3/23 Julien Rioux <julien.ri...@gmail.com>

> On Mar 23, 12:57 pm, weralwolf <weralw...@gmail.com> 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.
>

Yes, thanks, I really miss it! I just remove it in the last moment before
highlighting code.

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?
>

Yes, you are right. I try to calculate the ground state energy for that case
what you describe.


> 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.
>

Thanks, I'll look deeply, may be I'll find some solutions of this points.
 I'll search methods to solve it in current SymPy state.

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

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

Reply via email to