Simplify[Log[a/b]/Log[b/a], Assumptions -> {a > 0, b > a}]
doesn't reduce to -1 ??
Thanks (it's for a simple Carnot cycle calculation...)!
Cheers -- Sjoerd
I don't know why Simplify can't do it, but PowerExpand first and then
Simplify does the job.
Cheers -- Sjoerd
Hi,
you can use
In[1]:= Cancel[PowerExpand[Log[a/b]/Log[b/a]]]
Out[1]= -1
but please read the documentation to mind possibly unwanted effects.
This:
In[2]:= Assuming[b > a > 0,
FunctionExpand[Log[a/b]/Log[b/a]] // Refine // Cancel]
Out[2]= -1
is a bit more typing but should be mathematically carrect in any case.
Peter
Log[a/b]/Log[b/a] // PowerExpand // Simplify
-1
Bob Hanlon
---- Praeceptor <gianluca...@poste.it> wrote:
=============
Simplify@PowerExpand[Log[a/b]/Log[b/a]]
On 1/17/2011 5:41 AM, Praeceptor wrote:
> Simplify[Log[a/b]/Log[b/a], Assumptions -> {a> 0, b> a}]
--
Murray Eisenberg mur...@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Log[a/b]/Log[b/a] // PowerExpand // Simplify
In my experience the simplification functions in Mathematica sometimes need help from one of the *Expand functions.
-- Emil Hedevang
Simplify[FullSimplify[ComplexExpand[Log[a/b]/Log[b/a]]],
Assumptions -> {a > 0, b > 0}]
Its probably so complicated because of the cut of Log[] on the real axis
(in the complex plane).
Michael
>Simplify[Log[a/b]/Log[b/a], Assumptions -> {a > 0, b > a}]
>doesn't reduce to -1 ??
I don't have a good answer to your question but you can achieve
what you want with
In[8]:= Log[a/b]/Log[b/a] // PowerExpand // Simplify
Out[8]= -1
> Sorry, can anybody help me understand why
>
> Simplify[Log[a/b]/Log[b/a], Assumptions -> {a > 0, b > a}]
>
> doesn't reduce to -1 ??
> Thanks (it's for a simple Carnot cycle calculation...)!
>
Simplify can verify that this is indeed the case
Simplify[Log[a/b]/Log[b/a] == -1,
Assumptions -> {a > 0, b > a}]
True
However, it is hard to get it to simplify the expression to -1 because the only way to do so seems to involve temporarily increasing the default complexity. Thus, to get it to work we need a craftily designed custom complexity function, like, for example, this one:
f[expr_] := -2 Count[expr, _Log, {0, Infinity}] + LeafCount[expr]
This function "rewards" Simplify for expanding logs and, in this case, the "incentive" works:
Simplify[Log[a/b]/Log[b/a], Assumptions -> {a > 0, b > a},
ComplexityFunction -> f]
-1
But trying to find the right function is clearly not worth the effort; a much better way is to use PowerExpand with Assumptions followed by Simplify:
PowerExpand[Log[a/b]/Log[b/a],
Assumptions -> {a > 0, b > a}] // Simplify
-1
(Using PowerExpand without Assumptions does not guarantee that the answer is correct).
Andrzej Kozlowski
PowerExpand[Log[a/b]/Log[b/a],
Assumptions -> {a> 0, b> a}] // Simplify
-1
Sorry, can anybody help me understand why
Simplify[Log[a/b]/Log[b/a], Assumptions -> {a> 0, b> a}]
doesn't reduce to -1 ??
Thanks (it's for a simple Carnot cycle calculation...)!
--
Alexei Boulbitch, Dr. habil.
Senior Scientist
Material Development
IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 CONTERN
Luxembourg
Tel: +352 2454 2566
Fax: +352 2454 3566
Mobile: +49 (0) 151 52 40 66 44
e-mail: alexei.b...@iee.lu
--
This e-mail may contain trade secrets or privileged, undisclosed or
otherwise confidential information. If you are not the intended
recipient and have received this e-mail in error, you are hereby
notified that any review, copying or distribution of it is strictly
prohibited. Please inform us immediately and destroy the original
transmittal from your system. Thank you for your co-operation.
On 18 Gen, 11:53, Andrzej Kozlowski <a...@mimuw.edu.pl> wrote:
> [...]
> However, it is hard to get it to simplify the expression to -1 because th=
e only way to do so seems to involve temporarily increasing the default com=
plexity. Thus, to get it to work we need a craftily designed custom complex=
ity function, like, for example, this one:
>
> f[expr_] := -2 Count[expr, _Log, {0, Infinity}] + LeafCount[expr]
>
> This function "rewards" Simplify for expanding logs and, in this case, th=
e "incentive" works:
>
> Simplify[Log[a/b]/Log[b/a], Assumptions -> {a > 0, b > a},
> ComplexityFunction -> f]
>
> -1
>
> [...]
>
> Andrzej Kozlowski