math-parser icon indicating copy to clipboard operation
math-parser copied to clipboard

Issue with variable e

Open arnoutvreugdenhil opened this issue 6 years ago • 3 comments

If you supply a variable named e, the number e is used instead of the supplied value. Maybe throw an exception when a variable named e is supplied?

arnoutvreugdenhil avatar Jul 09 '19 10:07 arnoutvreugdenhil

We also had some difficulties today because we didn't know that 'e' was used as a constant. Probably the letters 'i' are also affected: https://github.com/mossadal/math-parser/blob/43b30d59a32d741164bc4aa4fa5ea5b5aaffa7a5/src/MathParser/Interpreting/Evaluator.php#L344

I think the function is great, but I would also like to suggest that you include it in the readme.

wi-wissen avatar Aug 06 '19 20:08 wi-wissen

Thank you both for the report, I'll give it some thought and get back to you, hopefully next week..

mossadal avatar Aug 07 '19 13:08 mossadal

This issue is still not fixed. Is this project abandoned ?

lkrzysiak avatar Apr 13 '22 14:04 lkrzysiak