LyXTrying to calculate ln(e) in LyX using Maxima

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
daacosta
Posts: 5
Joined: Tue Jun 21, 2016 8:00 am

Trying to calculate ln(e) in LyX using Maxima

Post by daacosta »

Greetings, I am trying to run a rather simple math expression where the Euler number is involved inside LyX using Maxima. It goes like this:

$\log(\e)$

When I do Edit > Math > Use CAS > Maxima, it fumbles and doesn´t perform the calculations. I have tried variations of the constant e, \e, \%e, etc. and none of them worked. I resorted to a very horrible solution:

1. I calculated \exp(1) in LyX using Maxima and it returned e... Since I am apprehensive I also did float\(exp(1)) and it gave me 2.718281828459045 making me happy...
2. Having convinced myself that \exp(1) is indeed Euler's number I boldly calculated \log(\exp(1)) and got 1... Yay!

I would like to know if there's a better way to write this in LyX and make it ready for Maxima to compute it... Funny thing is that I did \log(e) in Octave and it calculated the result as if nothing...

Compiling the document the pdf will show log(exp(1))=1 and that's horrible... It would be great if it were log(e)=1...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply