Source file src/pkg/math/exp.go
1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package math 6 7 // Exp returns e**x, the base-e exponential of x. 8 // 9 // Special cases are: 10 // Exp(+Inf) = +Inf 11 // Exp(NaN) = NaN 12 // Very large values overflow to 0 or +Inf. 13 // Very small values underflow to 1. 14 func Exp(x float64) float64 { return expGo(x) }