MathGroup Archive 2005

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

Search the Archive

Re: Replacement Rule


Amir schrieb:

> 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

This should work:

logo[a b c d] //. {logo[x_ y_] -> Log[x] + logo[y] , logo[x_] ->
Log[x]}

Norbert Marxer


  • Prev by Date: Re: More strange behavior by ComplexExpand
  • Next by Date: Re: Replacement Rule
  • Previous by thread: Re: Replacement Rule
  • Next by thread: Re: Replacement Rule