home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math.symbolic
- Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watdragon.uwaterloo.ca!daisy.uwaterloo.ca!bfmadore
- From: bfmadore@daisy.uwaterloo.ca (Blair Madore)
- Subject: Re: Maple for quantum mechanics?
- Message-ID: <BuFC15.AGq@watdragon.uwaterloo.ca>
- Sender: news@watdragon.uwaterloo.ca (USENET News System)
- Organization: University of Waterloo
- References: <1992Sep4.053635.12940@midway.uchicago.edu>
- Date: Fri, 11 Sep 1992 17:17:28 GMT
- Lines: 33
-
- In article <1992Sep4.053635.12940@midway.uchicago.edu> ppalmer@oskar.uchicago.edu (Patrick Palmer) writes:
- >I am trying to use Maple to carry out some quantum mechanical
- >calculations. I cannot get it to expand out a product of two
- >polynomials when the multiplication is non-commutative (the
- >coefficients of the non-commuting operators can be complex numbers,
- >but I don't think this is a problem). There must be a way do do this,
- >but, I looked through the manual and the list of libraries and didn't
- >find anything. Does anyone know how to do this?
- >
- >Pat Palmer (email: ppalmer@oskar.uchicago.edu)
-
- I think what you want is the commutat package.
-
- It defines &* as noncommutative multiplication with some expansion
- and simplification rules.
-
- > readlib(commutat);
-
- proc(f) ... end
-
- > (x+I*y) &* (x-3*y);
-
- (x + I y) &* (x - 3 y)
-
- > expand(");
-
- (x &* x) - 3 (x &* y) + I (y &* x) - 3 I (y &* y)
-
-
- I hope this helps.
- See ?commutat for more info.
-
-
-