Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2-parsers] Invalid math expression #8

Open
liqinyang opened this issue Feb 9, 2019 · 1 comment
Open

[2-parsers] Invalid math expression #8

liqinyang opened this issue Feb 9, 2019 · 1 comment

Comments

@liqinyang
Copy link

How should the evaluating function deal with some expression that is mathematically invalid like log(-1) or (-1)^(0.5). Should it return nan or terminate?

@johnwickerson
Copy link
Contributor

Good question. Invalid inputs like this (and division by zero) won’t be tested. So handle them however you like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants