MathGroup Archive 2004

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

Search the Archive

Re: Question about Hold

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48820] Re: Question about Hold
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 18 Jun 2004 02:12:42 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <carjrn$r76$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Commute[a, b] := c
Commute[a^n_, b] := Commute[a^(n - 1), Commute[a, b]]

Regards
  Jens

Daohua Song wrote:
> 
> Hi,evryone,
>     I define a commute relation for quantum operators,i fact i learn this
> from the forum.Here is the problem.
>     Commute[A,B]=C.
>     Commute[A^2,B], i try to use Hold[A*A] instead of A^2, then mathematica
> even won't evaluate it.!
>     Any suggestion to work on the power commutation?
>     Thanks
> Daohua


  • Prev by Date: Re: Controlling function arguments
  • Next by Date: Re: Controlling function arguments
  • Previous by thread: Question about Hold
  • Next by thread: Re: Re: Question about Hold