Initial revision
[LeanCalc.git] / help / ln
1 NAME
2     ln  -  logarithm function
3
4 SYNOPSIS
5     ln(x [,eps])
6
7 TYPES
8     x           nonzero real or complex
9     eps         nonzero real, defaults to epsilon()
10
11     return      real or complex
12
13 DESCRIPTION
14     Approximate the natural logarithm function of x by a multiple of
15     epsilon, the error having absolute value less than 0.75 * eps.
16     If n is a positive integer, ln(x, 10^-n) will usually be correct
17     to the n-th decimal place.
18
19 EXAMPLE
20     > print ln(10, 1e-5), ln(10, 1e-10), ln(10, 1e-15), ln(10, 1e-20)
21     2.30259 2.302585093 2.302585092994046 2.30258509299404568402
22
23     > print ln(2+3i, 1e-5), ln(2+3i, 1e-10)
24     1.28247+.98279i 1.2824746787+.9827937232i
25
26 LIMITS
27     x != 0
28     eps > 0
29
30 LINK LIBRARY
31     NUMBER *qln(NUMBER *x, NUMBER *eps)
32     COMPLEX *cln(COMPLEX *x, NUMBER *eps)
33
34 SEE ALSO
35     exp, acosh, asinh, atanh
36