MathGroup Archive 2005

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

Search the Archive

Re: Replacement rule for a quotient


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