MathGroup Archive 1997

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

Search the Archive

Re: suppressing certain simplifications

  • To: mathgroup at
  • Subject: [mg7576] Re: [mg7529] suppressing certain simplifications
  • From: jpk at
  • Date: Thu, 19 Jun 1997 03:13:40 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

> From JohnK239 at Fri Jun 13 10:51:28 1997
> Date: Fri, 13 Jun 1997 03:08:42 -0400 (EDT)
> From: John Kiehl <JohnK239 at>
To: mathgroup at
> To: mathgroup at
> Subject: [mg7576] [mg7529] suppressing certain simplifications
> How can I prevent h*h*h being "simplified" to h^3?  
> Furthermore, how can I amend the Power[...] function to 
> behave in the following manner:   
> h^5 transforms into h*h*h*h*h
> More specifically, how can I get (h*g)^2 to be displayed as:
> (h*g)*(h*g).
> I'm playing with simple group theory where sometimes hg=gh 
> and other times hg=gh^(-1).

At first don't use Times[] use NonCommutativeMultiply (h ** h ** h) for
symbolic calculations.

You can also remove the Orderless Attribute from Times so that
 h*h* a*h  is simplifyed to h^2 *a *h. How ever that's not a good idea
 for any other calculation.
 Hope that helps

  • Prev by Date: Re: Bug inputing Inline Equations
  • Next by Date: Re: Just another bug in MMA 3.0
  • Previous by thread: Re: suppressing certain simplifications
  • Next by thread: Bug inputing Inline Equations