[issue32171] Inconsistent results for fractional power of -infinity

2017-12-01 Thread Pierre Denis
Pierre Denis added the comment: > So this justifies things like `sqrt(-0.0)` giving a zero result (rather than > being considered invalid) Well, I didn’t noticed that the wolf was already in the henhouse! This choice seems disputable for me because it is precisely a case where f(-0.0)

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
Pierre Denis added the comment: Thanks, Tim & Mark. This indeed clarifies and gives a good rationale on Python implementation. Nevertheless, despite the authority arguments, I continue to wonder what is the rationale for these specifications. Probably the debate should move to the stand

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
New submission from Pierre Denis : Python returns inconsistent results when negative infinity is raised to a non-integer power. This happens with the ** operator as well as with the pow and math.pow functions. The most blatant symptom occurs with power 0.5, which is expectedly equivalent to a