KQMATH / tex2max

:books: JavaScript library for converting LaTeX math into Maxima code
https://www.npmjs.com/package/tex2max
GNU General Public License v3.0
14 stars 6 forks source link

Parse mathematical constants "e" and "pi" #65

Open AziAdFH opened 4 years ago

AziAdFH commented 4 years ago

When LaTeX expression contains mathematical constants "e" and "pi", it's impossible to run in Maxima: for example \lim_{x\to\pi}(e^x) converts to limit(((e^x)),x,(pi)) Perhaps it should be converted to limit(((%e^x)),x,(%pi)) (with %) or is this how it should be?

andstor commented 4 years ago

Hi!

Yes, you are absolutely correct! There is already an issue for this, see #27. This is absolutely something that should be implemented. However, I don't have time for it right now. Maybe you would be interested in trying to implement this @AziAdFH ?

Anyway, there is apparently a quick-fix that can be done on the Maxima side... See discussion in #26.