Sep-23-2021, 12:08 PM
I was trying the following commands :
I am just surprised to find different values for the same problem.
I was expecting to see that python has higher priority of "sign" over the power "**"
any reason for those results?
>>> -1 ** 0.5 -1.0 >>> (-1) ** 0.5 (6.123233995736766e-17+1j)I was expecting "1j" , "1i" or "i"
I am just surprised to find different values for the same problem.
I was expecting to see that python has higher priority of "sign" over the power "**"
any reason for those results?