summaryrefslogtreecommitdiff
path: root/libgo/go/math/exp.go
blob: c519c2cb6b6bf55bbc15a55411586ba29dfa5fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) }