MathGroup Archive 1999

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

Search the Archive

Re: Log manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16837] Re: Log manipulation
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 1 Apr 1999 21:35:17 -0500
  • References: <7dprc6$dq3@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Pierre infelta <pierre.infelta at epfl.ch> wrote in message
news:7dprc6$dq3 at smc.vnet.net...

> I am looking for the command that will do the opposite of powerExpand
> for the Log function.
........

> Command[Log[a] + Log[b]]
>
> to get
>
> Log[a b]


Pierre,

We can make one

UnPowerExpand[expr_]:=
 expr//.Log[x_]+Log[y_]:> Log[x y]

UnPowerExpand[Log[p]+Log[q]+Log[r]]

Log[p q r]


Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565







  • Prev by Date: ListPlot3D
  • Next by Date: Re: combinations
  • Previous by thread: Re: Log manipulation
  • Next by thread: Re: Log manipulation