MathGroup Archive 2005

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

Search the Archive

Re: Replacement rule for a quotient

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60441] Re: Replacement rule for a quotient
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 16 Sep 2005 03:50:19 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dgbek4$fl2$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

a^2*c^3*d*e/(b^2*f^3*g) + a/b /. a -> q*b

a^2*c^3*d*e/(b^2*f^3*g) + a/b /. b -> a/q

a^2*c^3*d*e/(b^2*f^3*g) + a/b /. a^n_.*c_.*b^m_. 
/; n + m == 0 :> q*c

Regards
  Jens

"Nicolas Girard" <nicolas.girard at strasbourg.fr> 
schrieb im Newsbeitrag 
news:dgbek4$fl2$1 at smc.vnet.net...
| Hi all,
| I'm afraid I couldn't find how to write the 
replacement rule that would
| transform, for instance
|
|
| a^2.c^3.d.e   a
| ----------- + -
| b^2.f^3.g     b
|
| into
|
|    c^3.d.e
| q^2.-------- + q
|     f^3.g
|
|
| where . is the standard Times[] and ^ is the 
standard Power[].
|
| Could you please give me a hand for this ?
|
| Many thanks in advance,
|
| cheers,
| Nicolas
| 



  • Prev by Date: Re: Replacement rule for a quotient
  • Next by Date: Re: basic issue with do and :=
  • Previous by thread: Re: Replacement rule for a quotient
  • Next by thread: Re: Nesting NMaximize