summaryrefslogtreecommitdiff
path: root/libgo/go/math/exp.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/exp.go')
-rw-r--r--libgo/go/math/exp.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/libgo/go/math/exp.go b/libgo/go/math/exp.go
new file mode 100644
index 000000000..c519c2cb6
--- /dev/null
+++ b/libgo/go/math/exp.go
@@ -0,0 +1,14 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package math
+
+// Exp returns e**x, the base-e exponential of x.
+//
+// Special cases are:
+// Exp(+Inf) = +Inf
+// Exp(NaN) = NaN
+// Very large values overflow to 0 or +Inf.
+// Very small values underflow to 1.
+func Exp(x float64) float64 { return expGo(x) }