Re: Overriding Power
- To: mathgroup at smc.vnet.net
- Subject: [mg26841] Re: Overriding Power
- From: "Paul Lutus" <nospam at nosite.com>
- Date: Thu, 25 Jan 2001 01:13:20 -0500 (EST)
- References: <94m9e5$3nu@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Jeff Hersh" <frumple*NOSPAM* at home.com> wrote in message news:94m9e5$3nu at smc.vnet.net... > Hello, > > 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? Why not write your own function with its own rules and don't use Power[] or "^", or (less desirable) redefine these symbols for your own purposes? -- Paul Lutus www.arachnoid.com