2 exp - exponential function
9 eps nonzero real, defaults to epsilon()
11 return real or complex
14 Approximate the exponential function of x by a multiple of epsilon,
15 the error having absolute value less than 0.75 * eps.
16 If n is a positive integer, exp(x, 10^-n) will usually be
17 correct to the n-th decimal place, which, for large positive x
18 will give many significant figures.
21 > print exp(2, 1e-5), exp(2,1e-10), exp(2, 1e-15), exp(2, 1e-20)
22 7.38906 7.3890560989 7.38905609893065 7.38905609893065022723
24 > print exp(30, 1e5), exp(30, 1), exp(30, 1e-10)
25 10686474600000 10686474581524 10686474581524.4621469905
27 > print exp(-20, 1e-5), exp(-20, 1e-10), exp(-20, 1e-15), exp(-20, 1e-20)
28 0 .0000000021 .000000002061154 .00000000206115362244
30 > print exp(1+2i, 1e-5), exp(1+2i, 1e-10)
31 -1.1312+2.47173i -1.1312043838+2.471726672i
37 NUMBER *qexp(NUMBER *x, NUMBER *eps)
38 COMPLEX *cexp(COMPLEX *x, NUMBER *eps)