MathGroup Archive 2005

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

Search the Archive

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


Hi,

F /: Times[a___, f_F, f_F, b___] := a*Hold[f*f]*b

Regards

  Jens

"Josef Karthauser" <joe at tao.org.uk> schrieb im Newsbeitrag 
news:csqs3u$1te$1 at smc.vnet.net...
>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: Form of a linear equation
  • Next by Date: Re: Mathematica 5.0 on Windows Server 2003?
  • Previous by thread: Re: Preventing Times[x,x] from becoming Power[x,2]
  • Next by thread: NDSolve/InterpolatingFunction and vectors