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

^ is used as bitwise XOR, ** should be used for powers #581

Closed
Martmists-GH opened this issue Jan 14, 2017 · 1 comment
Closed

^ is used as bitwise XOR, ** should be used for powers #581

Martmists-GH opened this issue Jan 14, 2017 · 1 comment

Comments

@Martmists-GH
Copy link
Contributor

This is done wrongly in math_words.json

As an example, I'll take the input What's seven times three to the power of eight?

Here chatterbot does this:

( 7 * ( 3 ^ 8 ) ) = 77
# Reasoning:
3 ^ 8 = 0011 ^ 1000 = 1011 = 11
7 * 11 = 77

Whereas it should do this:

( 7 * ( 3 ** 8 ) ) = 45927
# Reasoning:
3 ** 8 = 6561
7 * 6561 = 45927
@lock
Copy link

lock bot commented Mar 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant