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

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" <> schrieb im Newsbeitrag | 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 |