Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg53723] Re: Preventing Times[x,x] from becoming Power[x,2]
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 25 Jan 2005 05:03:20 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <csqs3u$1te$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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