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

"10 plus 2 squared times 3 = 2,985,984 " ????? #29

Open
sokimm opened this issue May 25, 2020 · 0 comments
Open

"10 plus 2 squared times 3 = 2,985,984 " ????? #29

sokimm opened this issue May 25, 2020 · 0 comments

Comments

@sokimm
Copy link

sokimm commented May 25, 2020

As I run the chatterbot with math logic and evaluate the following sentences:

“10 plus 2 squared times 3”
“10 plus (2 squared) times 3”

must have the same results with 22.

However, the previous answer is 2,985,984, and the latter one is 22.

I think it happens because of mathparse, especially to_postfix() (the precedence of ^ and others)

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