summaryrefslogtreecommitdiff
path: root/src/pkg/math/log10.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/log10.go')
-rw-r--r--src/pkg/math/log10.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pkg/math/log10.go b/src/pkg/math/log10.go
index 6d18baae2..67c163a49 100644
--- a/src/pkg/math/log10.go
+++ b/src/pkg/math/log10.go
@@ -6,8 +6,16 @@ package math
// Log10 returns the decimal logarithm of x.
// The special cases are the same as for Log.
-func Log10(x float64) float64 { return Log(x) * (1 / Ln10) }
+func Log10(x float64) float64
+
+func log10(x float64) float64 {
+ return Log(x) * (1 / Ln10)
+}
// Log2 returns the binary logarithm of x.
// The special cases are the same as for Log.
-func Log2(x float64) float64 { return Log(x) * (1 / Ln2) }
+func Log2(x float64) float64
+
+func log2(x float64) float64 {
+ return Log(x) * (1 / Ln2)
+}