Answer by TheDoctor for General function for the expansion of a polynomial of...
Nice idea. I give this example to my 3rd year students—essentially Heisenberg's matrix mechanics. Just a minor comment; you can use Dot instead of Total:reduceHO[n_]:=Module[...
View ArticleAnswer by Jens for General function for the expansion of a polynomial of...
The question deals with a particular operator characterized by the commutation relation $[a, a^\dagger] = 1$. The polynomial to be expanded is also of a special form, $(a+a^\dagger)^n$. Also, the whole...
View ArticleAnswer by Stephen Luttrell for General function for the expansion of a...
You have make your own definitions to handle non-commutativity. The basic trick is to use op[x1, x2, x3, ...] to represent an operator product, and to define various rules for manipulating the op[x1,...
View ArticleGeneral function for the expansion of a polynomial of operators
This question is motivated by a Quantum mechanical problem - but in explaining the problem - I assume no knowledge of quantum mechanics.I want to define a function that can expand and simplify the...
View Article
More Pages to Explore .....