MathGroup Archive 2005

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

Search the Archive

Re: Preventing Times[x,x] from becoming Power[x,2]


Josef Karthauser wrote:
> I was wondering whether anyone knows the answer to this one.
> 
> I've got a function, let's call it F[...]. If I enter F[s] F[s]
> into mathematica it "simplifies" the resulting expression, making it
> become Power[F[s],2].  Is there any way to prevent this automatic
> simplification on F[] objects?
> 
> Joe
Hi,

The fact that you don't want that simplification to take place suggests 
to me that you do not intend F[s]F[s] to mean ordinary multiplication. 
In that case, it would be better to use one of the unassigned operators 
(such as \[CircleTimes]) to represent 'not multiplication'. You 
obviously will not get spurious simplifications, and you can define the 
tru behaviour as you want.

David Bailey
dbaileyconsultancy.co.uk


  • Prev by Date: Re: PlotLegend not an option for PLot? 5.1
  • Next by Date: Numbers and their reversals
  • Previous by thread: Re: Preventing Times[x,x] from becoming Power[x,2]
  • Next by thread: Re: Preventing Times[x,x] from becoming Power[x,2]