MathGroup Archive 2005

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

Search the Archive

Re: Replacement Rule

  • To: mathgroup at
  • Subject: [mg60629] Re: [mg60605] Replacement Rule
  • From: "Jaccard Florian" <Florian.Jaccard at>
  • Date: Thu, 22 Sep 2005 05:42:16 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hello Amir!

You just made a little typing mistake!
On the right hand side of your rule, you have to find logo to!

logo[a*b*c*d] //. logo[(x_)*(y_)] :> logo[x] + logo[y]

logo[a] + logo[b] + logo[c] + logo[d]


-----Message d'origine-----
De : Amir [mailto:z64043 at] 
Envoyé : jeudi, 22. septembre 2005 08:08
À : mathgroup at
Objet : [mg60605] Replacement Rule

In:    logo[a b c d] //. logo[x_ y_] :> Log[x]+Log[y]
Out:  Log[a]+Log[b c d]

Shouldn't the correct answer be( Log[a]+Log[b]+Log[c]+Log[d]) ????


  • Prev by Date: Re: A Su Doku solver
  • Next by Date: Re: Replacement Rule
  • Previous by thread: Re: Replacement Rule
  • Next by thread: Re: Replacement Rule