Sep-12-2018, 02:27 AM
hi,
I met a problem when using the built-in function pow().
here is the code:
Why??
I use python3.6, anaconda Spyder.
I met a problem when using the built-in function pow().
here is the code:
In [1]: pow(-2, 1/3) Out [1]: (0.6299605249474367+1.0911236359717214j) In [2]: (-2) ** 1/3 Out [2]: -0.6666666666666666The document says pow(x, y) is equivalent to x ** y, but it is different here.
Why??
I use python3.6, anaconda Spyder.