MathGroup Archive 2005

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

Search the Archive

Re: Replacement Rule


Hello Amir!

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

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

Out[3]=
logo[a] + logo[b] + logo[c] + logo[d]

Regards
 
F.Jaccard

-----Message d'origine-----
De : Amir [mailto:z64043 at netscape.net] 
Envoyé : jeudi, 22. septembre 2005 08:08
À : mathgroup at smc.vnet.net
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]) ????

Amir 



  • 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