As John said, this is not about handling the exponential, but about handling the minus sign. But this isn't some sort of Julia quirk:
MATLAB: >> -1^2 ans = -1 Python: >> -1**2 -1 R: > -1^2[1] -1 Seems pretty consistent to me!
As John said, this is not about handling the exponential, but about handling the minus sign. But this isn't some sort of Julia quirk:
MATLAB: >> -1^2 ans = -1 Python: >> -1**2 -1 R: > -1^2[1] -1 Seems pretty consistent to me!