Re: creating dirac bra-ket notations in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg72291] Re: [mg72261] creating dirac bra-ket notations in Mathematica
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Mon, 18 Dec 2006 06:56:19 -0500 (EST)
- References: <200612171120.GAA07275@smc.vnet.net>
Input 18 seems like it is a hack...
On 12/17/06, CIHAN NADIR KAPLAN <CIKAPLAN at ku.edu.tr> wrote:
> 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: image border
Next by Date:
RE: Problems with Set, SetDelayed and replacement rules...
Previous by thread:
creating dirac bra-ket notations in Mathematica
Next by thread:
Problems with Set, SetDelayed and replacement rules...