Sep-23-2021, 03:59 PM
The reason -1**0.5 == -1 is that ** has higher precedence than unary -.
The reason (-1)**5 ~= 1j is that the parenthesis change the order of operations. Unary - is first, then **. As for the small remainder,
you don't need imaginary numbers to see that you cannot represent an infinite set of numbers using a limited set of bytes.
The reason (-1)**5 ~= 1j is that the parenthesis change the order of operations. Unary - is first, then **. As for the small remainder,
you don't need imaginary numbers to see that you cannot represent an infinite set of numbers using a limited set of bytes.