2010-12-03 05:34:57 +01:00
|
|
|
// 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.
|
2011-01-21 19:19:03 +01:00
|
|
|
func Exp(x float64) float64 { return expGo(x) }
|