Message395308
For some prior art, https://www.wolframalpha.com/input/?i=%28-8%29+%5E+%281%2F3%29 says it defaults to using "the principal root" over "the real-valued root"
Also, I think the relevant property is that the exponent is not an integer; being between 0 and 1 is irrelevant:
>>> pow(-8, 4/3)
(-8.000000000000005-13.856406460551014j)
Maybe the tweak could be something like
"Note that using a negative base with a non-integer exponent will return the principal complex exponent value, even if a different real value exists." |
|
Date |
User |
Action |
Args |
2021-06-08 05:56:47 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, docs@python, eyadams |
2021-06-08 05:56:47 | Dennis Sweeney | set | messageid: <1623131807.45.0.246306238679.issue44344@roundup.psfhosted.org> |
2021-06-08 05:56:47 | Dennis Sweeney | link | issue44344 messages |
2021-06-08 05:56:47 | Dennis Sweeney | create | |
|