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