MathGroup Archive 2004

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

Search the Archive

Separating constants from nonconstants in an expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52423] Separating constants from nonconstants in an expression
  • From: Nicolas Girard <nicolas.girard at strasbourg.fr>
  • Date: Fri, 26 Nov 2004 06:20:29 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
given any expression like

  expr := (4 Pi k1 x k2 y)/(12 k3 t k4 u)

and knowing that k1...k4 are constants, how could I separate these terms
from the non constant ones, i.e. ending up with

  Pi k1 k2   x y
  -------- . ---
  3 k3 k4    t u

? I've looked into the manual & browsed this newsgroup, but didn't find a
clue...

Many thanks in advance !
Nicolas
 


  • Prev by Date: Re: Re: Newly Released Mathematica 5.1 Delivers Unmatched Performance for Handling Data
  • Next by Date: Re: Pattern matching partial derivatives
  • Previous by thread: Re: Speeding UP Indexing and Joining of Different Size Rectangular Matrixes
  • Next by thread: Re: Separating constants from nonconstants in an expression