-
Notifications
You must be signed in to change notification settings - Fork 49
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
Incorrect Computation #534
Comments
Wow, that's weird. note: |
From the following a = 10**7
a4 = a**4
print(a4 % 2**64) # 4477988020393345024 I think that there must be some casting to 64bits somewhere that destroys the results but I hadn't had the time to find it |
Yes, I arrived at the same conclusion. >>> import numpy as np
>>> np.int64(10**7)**4
np.int64(4477988020393345024) This is an inherent limitation from the fact that |
Description
Incorrect result of computation:
The text was updated successfully, but these errors were encountered: