MathGroup Archive 2004

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

Search the Archive

Re: Question about Hold


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