MathGroup Archive 2005

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53685] Re: [mg53661] Preventing Times[x,x] from becoming Power[x,2]
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 22 Jan 2005 03:52:35 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Avoid using F since this is the EllipticF.  Then, use NonCommutativeMultiply 
(**) instead of Times (*)

f[s]**f[s]

f(s)**f(s)

f[s]**f[s]**f[s]

f(s)**f(s)**f(s)

f[s]**f[s]**f[s]**f[s]

f(s)**f(s)**f(s)**f(s)

{%%%,%%,%} /. NonCommutativeMultiply->Times

{f[s]^2, f[s]^3, f[s]^4}


Bob Hanlon

> 
> From: Josef Karthauser <joe at tao.org.uk>
To: mathgroup at smc.vnet.net
> Date: 2005/01/21 Fri AM 06:37:48 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg53685] [mg53661] Preventing Times[x,x] from becoming Power[x,2]
> 
> 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
> -- 
> Josef Karthauser (joe at tao.org.uk)	       http://www.josef-k.net/
> FreeBSD (cvs meister, admin and hacker)     http://www.uk.FreeBSD.org/
> Physics Particle Theory (student)   http://www.pact.cpes.sussex.ac.uk/
> ================ An eclectic mix of fact and theory. 
=================
> 
> 


  • Prev by Date: Re: Plotting lists of functions
  • Next by Date: Monte Carlo Simulation Experiences
  • 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]