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: [mg60451] Re: [mg60394] Replacement rule for a quotient
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 16 Sep 2005 03:50:55 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

expr = (a^2*c^3*d)/(b^2*f^3*g) + a/b; 

expr/.a->b*q

(d*q^2*c^3)/(f^3*g) + q


Bob Hanlon

> 
> From: Nicolas Girard <nicolas.girard at strasbourg.fr>
To: mathgroup at smc.vnet.net
> Date: 2005/09/15 Thu AM 05:16:15 EDT
> Subject: [mg60451] [mg60394] Replacement rule for a quotient
> 
> 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: NonlinearFit - Logistic Function-CalcCenter3
  • Next by Date: Re: Replacement rule for a quotient
  • Previous by thread: Re: Replacement rule for a quotient
  • Next by thread: Re: Replacement rule for a quotient