2008-03-28 13:56:47 -07: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.
|
|
|
|
|
|
2008-06-27 17:06:23 -07:00
|
|
|
package math
|
2008-03-28 13:56:47 -07:00
|
|
|
|
2010-04-09 14:37:33 -07:00
|
|
|
// Exp returns e**x, the base-e exponential of x.
|
2009-03-05 13:31:01 -08:00
|
|
|
//
|
|
|
|
|
// Special cases are:
|
|
|
|
|
// Exp(+Inf) = +Inf
|
|
|
|
|
// Exp(NaN) = NaN
|
2010-02-01 22:21:40 -08:00
|
|
|
// Very large values overflow to 0 or +Inf.
|
2009-03-05 13:31:01 -08:00
|
|
|
// Very small values underflow to 1.
|
2010-12-06 16:24:51 -05:00
|
|
|
func Exp(x float64) float64 { return expGo(x) }
|