summaryrefslogtreecommitdiff
path: root/libgo/go/cmath/pow.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/cmath/pow.go')
-rw-r--r--libgo/go/cmath/pow.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/cmath/pow.go b/libgo/go/cmath/pow.go
index de2c4db56ea..68e1207c674 100644
--- a/libgo/go/cmath/pow.go
+++ b/libgo/go/cmath/pow.go
@@ -46,7 +46,7 @@ import "math"
func Pow(x, y complex128) complex128 {
modulus := Abs(x)
if modulus == 0 {
- return cmplx(0, 0)
+ return complex(0, 0)
}
r := math.Pow(modulus, real(y))
arg := Phase(x)
@@ -56,5 +56,5 @@ func Pow(x, y complex128) complex128 {
theta += imag(y) * math.Log(modulus)
}
s, c := math.Sincos(theta)
- return cmplx(r*c, r*s)
+ return complex(r*c, r*s)
}