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

MathGroup Archive 1997

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

Search the Archive

Re: How to make Mathematica to return "Log[Exp[x]]" as x?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5710] Re: [mg5669] How to make Mathematica to return "Log[Exp[x]]" as x?
  • From: Peder Thusgaard Ruhoff <ptk at dit.ou.dk>
  • Date: Sat, 11 Jan 1997 14:29:07 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

On Tue, 7 Jan 1997, Cheng Li wrote:

> Date: Tue, 7 Jan 1997 11:22:46 -0500
> From: Cheng Li <chengli at uab.edu>
To: mathgroup at smc.vnet.net
> To: mathgroup at smc.vnet.net
> Subject: [mg5710] [mg5669] How to make Mathematica to return "Log[Exp[x]]" as x?
> 
> Dear friends, suppose x is a variable and when I type "Log[Exp[x]]" and then 
> enter, Mathematica gives me "Log[Exp[x]]" back. Could you please tell me how 
> to let Mathematica to return "Log[Exp[x]]" as x?
> Thank you very much.
> Cheng Li
> chengli at uab.edu
> 
> 

Dear Cheng Li,

Use PowerExpand.

In[1]:= Log[Exp[x]] // PowerExpand

Out[1]= x

Note that PowerExpand does not pay attention to branch cuts.

Peder

-------------------------------------+--------------------------------------
Peder Thusgaard Ruhoff, Ph.D.        | Phone:  (+45) 65 57 35 43
Department of Information Technology | Fax:    (+45) 66 15 76 97 
Odense University                    | 
Campusvej 55                         | E-mail: ptk at dit.ou.dk
DK-5230 Odense M, DENMARK            | URL:    http://www.dit.ou.dk/~ptk/
-------------------------------------+--------------------------------------

"It is important for him who wants to discover not to confine himself to one 
 chapter of science, but to keep in touch with various others" - J. Hadamard




  • Prev by Date: Re: How to make Mathematica to return "Log[Exp[x]]" as x?
  • Next by Date: Re: Noah's List
  • Previous by thread: Re: How to make Mathematica to return "Log[Exp[x]]" as x?
  • Next by thread: Re: How to make Mathematica to return "Log[Exp[x]]" as x?