focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / exp
1 NAME
2     exp - exponential function
3
4 SYNOPSIS
5     exp(x [,eps])
6
7 TYPES
8     x           real or complex
9     eps         nonzero real, defaults to epsilon()
10
11     return      real or complex
12
13 DESCRIPTION
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.
19
20 EXAMPLE
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
23
24     > print exp(30, 1e5), exp(30, 1), exp(30, 1e-10)
25     10686474600000 10686474581524 10686474581524.4621469905
26
27     > print exp(-20, 1e-5), exp(-20, 1e-10), exp(-20, 1e-15), exp(-20, 1e-20)
28     0 .0000000021 .000000002061154 .00000000206115362244
29
30     > print exp(1+2i, 1e-5), exp(1+2i, 1e-10)
31     -1.1312+2.47173i -1.1312043838+2.471726672i
32
33 LIMITS
34     x < 693093
35
36 LINK LIBRARY
37     NUMBER *qexp(NUMBER *x, NUMBER *eps)
38     COMPLEX *cexp(COMPLEX *x, NUMBER *eps)
39
40 SEE ALSO
41     ln, cosh, sinh, tanh
42