MathGroup Archive 2001

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

Search the Archive

Re: Overriding Power

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26828] Re: Overriding Power
  • From: Roland Franzius <Roland.Franzius at uos.de>
  • Date: Thu, 25 Jan 2001 01:13:10 -0500 (EST)
  • Organization: Universitaet Osnabrueck
  • References: <94m9e5$3nu@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jeff Hersh wrote:

> I am working on a package that deals with non-communative multiplication
> and I have run into a problem with the Power function. As we know
> Power[a b,n] (where n is an integer) automatically gets converted to
> Power[a,n] Power[b,n]. However, with non-communative multiplication (I
> have removed the Orderless attribute from Times to make it
> non-communative) this isn't valid. Is there any way I can stop
> Mathematica from automatically doing this conversion?

Hi Jeff,
I recommend to avoid overloading the existing algebraic functions with
arguments  from a noncommutive algebra. Write your own functions and use
Format for pretty printing the results. Especially for Power, Exp there
are MatrixPower, MatrixExp which have build  features you are requiring.

regards, Roland

-- 
Roland Franzius

  +++ exactly <<n>> lines of this message have value <<FALSE>> +++


  • Prev by Date: Re: FORTRAN style, not OK?
  • Next by Date: Re: [Q] symbolic SVD?
  • Previous by thread: Re: Overriding Power
  • Next by thread: Re: Overriding Power