Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

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
> 


  • Prev by Date: Re: DirectedInfinity[1 + I], why does it get replaced by (1 + I)/(sqrt(2) ?
  • Next by Date: Re: Re: Recommendations for a programming book?
  • Previous by thread: Re: New unary operator
  • Next by thread: extracting decimal digits of Pi