creating dirac bra-ket notations in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg72261] creating dirac bra-ket notations in Mathematica
- From: "CIHAN NADIR KAPLAN" <CIKAPLAN at ku.edu.tr>
- Date: Sun, 17 Dec 2006 06:20:02 -0500 (EST)
I'm using Mathematica 5.0 on WinXP and trying to create dirac bra-ket notations in Mathematica, according to the instructions in the document: http://documents.wolfram.com/v5/Demos/Notebooks/NewNotations.html
In the document, the line "In:=" works well, but I want that a number and operator commutes just like at the line In:=.
Even though I enter the commands in "In" and "In" , numbers and operators don't commute, and this leads to non-acting operators when there is a number between a ket and the operator.
Is there something missing in "In" and "In", or is there an alternative, compact way to get noncommutative behaviour (noncommutativemultiply gives error when using with In ) ?
By the way, should I set a different preference from edit->preferences in order to make the commands in the document fully functional? (e.g. when I write Ket[\psi] and call a function, there is no problem, but when I try to input in the bra-ket notation like |psi> using aliases defined here, it gives errors like
Syntax::sntxi: Incomplete expression; more input is needed
Nevertheless, I have succesfully come to In, but the inputs after  are troublesome. Any help will be greatly appreciated.
Prev by Date:
Re: Matching Or expressions
Next by Date:
RE: Notebook Typesetting for Printing
Previous by thread:
Re: rebuild the help index problem
Next by thread:
Re: creating dirac bra-ket notations in Mathematica