Re: New unary operator

*To*: mathgroup at smc.vnet.net*Subject*: [mg55848] Re: New unary operator*From*: dh <dh at metrohm.ch>*Date*: Thu, 7 Apr 2005 07:15:07 -0400 (EDT)*References*: <d32ub2$ct4$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Hi Jason, There is already some built in meaning for SuperDagger. You only need do define the operator, like: SuperDagger[x_]=Transpose[Conjugate[x]] From then on, when you write a Dagger as a superscript, the argument will be wrapped into Transpose[Conjugate[..]] and eventually processed. Note that it only works if the dagger is a superscript. e.g.: \!\({{1, 2}, {3, 4}}\^?\) gives {{1, 3}, {2, 4}} Sincerely, Daniel jason.lee.quinn at gmail.com wrote: > I'm trying to get mathematica to define the dagger operation of quantum > mechanics, which stands for the conjugate transpose. I've been > attempting it using > > Notation[u_^\[Dagger] <==> Transpose[Conjugate[u_]]] > > but it doesn't seem to do it. I'm entering the Notation with the > Notations Pallete. > > Any ideas? > > Jason >