Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: combining Log[] terms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30494] Re: [mg30482] combining Log[] terms
  • From: BobHanlon at aol.com
  • Date: Fri, 24 Aug 2001 04:05:53 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/8/23 2:24:57 AM, nbock at acsu.buffalo.edu writes:

>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.
>

Use a rule

Log[a] - Log[b];

% /. Log[y_] - Log[z_] -> Log[y/z]

Log[a/b]

%//PowerExpand

Log[a] - Log[b]


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: ColorFunction
  • Next by Date: Re: ColorFunction
  • Previous by thread: combining Log[] terms
  • Next by thread: RE: combining Log[] terms