MathGroup Archive 2001

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

Search the Archive

RE: combining Log[] terms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30502] RE: [mg30482] combining Log[] terms
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 24 Aug 2001 04:06:00 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Nicolas,

One method would be to use a replacement rule.

2*Log[a] - 3*Log[b] /. 
  (k1_.)*Log[x_] + (k2_.)*Log[y_] -> Log[x^k1*y^k2]
Log[a^2/b^3]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


> From: Nicolas Bock [mailto:nbock at acsu.buffalo.edu]
To: mathgroup at smc.vnet.net
> 
> Is there a function that combines terms like
> 
> Log[a] - Log[b]
> 
> to
> 
> Log[a/b]?
> 
> I couldn't find anything so far in the documentation regarding the
> Log[] function, only some references to Collect[], which does
> something similar to what I want for powers of a given expression.
> 
>    Thanks already for you help,
> 
>      nick
> 


  • Prev by Date: Re: Greatest element in list
  • Next by Date: Re: combining Log[] terms
  • Previous by thread: Re: combining Log[] terms
  • Next by thread: Re: combining Log[] terms