Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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
  • Subject: [mg53723] Re: Preventing Times[x,x] from becoming Power[x,2]
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Tue, 25 Jan 2005 05:03:20 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <csqs3u$1te$>
  • Sender: owner-wri-mathgroup at


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



"Josef Karthauser" <joe at> schrieb im Newsbeitrag 
news:csqs3u$1te$1 at
>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
> FreeBSD (cvs meister, admin and hacker)
> Physics Particle Theory (student)
> ================ 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