Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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:
> Hi,
>
> 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[53]:=" works well, but I want that a number and operator commutes just like at the line In[65]:=.
> Even though I enter the commands in "In[57]" and "In[59]" , 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[57]" and "In[59]", or is there an alternative, compact way to get noncommutative behaviour (noncommutativemultiply gives error when using with In[40] )  ?
>
> 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[56], but the  inputs after [56] are troublesome. Any help will be greatly appreciated.
>
> Regards
> Nadir
>
>


-- 
http://chris.chiasson.name/


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