MathGroup Archive 2005

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

Search the Archive

Re: Replacement Rule

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60630] Re: Replacement Rule
  • From: "nma" <marxer at mec.li>
  • Date: Thu, 22 Sep 2005 05:42:17 -0400 (EDT)
  • References: <dgtimi$23b$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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