[issue32171] Inconsistent results for fractional power of -infinity

2017-12-01 Thread Pierre Denis
Pierre Denis <pie.de...@skynet.be> 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 prec

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
Pierre Denis <pie.de...@skynet.be> 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 deba

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
New submission from Pierre Denis <pie.de...@skynet.be>: 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,