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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply