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

Powers order bug #5

Open
louisdh opened this issue Jun 1, 2017 · 0 comments
Open

Powers order bug #5

louisdh opened this issue Jun 1, 2017 · 0 comments

Comments

@louisdh
Copy link
Owner

louisdh commented Jun 1, 2017

Currently, 3^3^3 evaluates to 19.683.
This is achieved because the powers are executed from left to right:
3^3^3 => (3^3)^3 => 27^3 => 19.683

The correct behavior is to execute powers from right to left:
3^3^3 => 3^(3^3) => 3^27 => 7.625.597.484.987

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