fasseg / exp4j

A tiny math expression evaluator for the Java programming language
http://www.objecthunter.net/exp4j/
Apache License 2.0
475 stars 160 forks source link

Issue #88: Fixed multiple function concatenation bug #89

Closed alexandrustana closed 3 years ago

alexandrustana commented 6 years ago

Possible fix for the concatenating function bug.

In order to check that the following case does not appear sincos(x) a check is added in the ShuntingYard which verifies if 2 function tokens are detected and between them is no other token. This verification will ensure that only sin(cos(x)) is valid.