aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math/cmplx/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/cmplx/log.go')
-rw-r--r--libgo/go/math/cmplx/log.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/math/cmplx/log.go b/libgo/go/math/cmplx/log.go
index 881a064..fd39c76 100644
--- a/libgo/go/math/cmplx/log.go
+++ b/libgo/go/math/cmplx/log.go
@@ -60,5 +60,6 @@ func Log(x complex128) complex128 {
// Log10 returns the decimal logarithm of x.
func Log10(x complex128) complex128 {
- return math.Log10E * Log(x)
+ z := Log(x)
+ return complex(math.Log10E*real(z), math.Log10E*imag(z))
}