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

CalculusGenerator returning wrong answer #1

Open
eireksten opened this issue Sep 15, 2013 · 0 comments
Open

CalculusGenerator returning wrong answer #1

eireksten opened this issue Sep 15, 2013 · 0 comments

Comments

@eireksten
Copy link

As the generator creates a tree with the nodes, it could make mistakes when handling minus and plus.

4-(3+5) eq -4

The left part will be output as
4-3+5, which has the correct answer 6

Generated from the code:
[9+40_8+30-39_31+40, -890]
The correct answer is -810.

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

1 participant