]> Cypherpunks repositories - gostls13.git/commit
math/cmplx: define Pow(0, x) for problematic values of x.
authorRob Pike <r@golang.org>
Tue, 25 Mar 2014 00:25:20 +0000 (11:25 +1100)
committerRob Pike <r@golang.org>
Tue, 25 Mar 2014 00:25:20 +0000 (11:25 +1100)
commita9014ba4150b782ee10ab532752f97a7df26846e
tree4e054d0f5821bc2ab310fd11bdb883bd453d3116
parent929ee59fce2a314a28a25629e6c99402ec97603e
math/cmplx: define Pow(0, x) for problematic values of x.
Currently it's always zero, but that is inconsistent with math.Pow
and also plain wrong.
This is a proposal for how it should be defined.
Fixes #7583.

LGTM=rsc
R=golang-codereviews, iant, gobot, rsc
CC=golang-codereviews
https://golang.org/cl/76940044
src/pkg/math/cmplx/cmath_test.go
src/pkg/math/cmplx/pow.go