fixed it to work on terminals with over 48 lines, and fixed bug
[unix-history] / .ref-BSD-3 / usr / man / man3 / exp.3m
CommitLineData
e6817382
BJ
1.TH EXP 3M
2.SH NAME
3exp, log, log10, pow, sqrt \- exponential, logarithm, power, square root
4.SH SYNOPSIS
5.B #include <math.h>
6.PP
7.B double exp(x)
8.br
9.B double x;
10.PP
11.B double log(x)
12.br
13.B double x;
14.PP
15.B double log10(x)
16.br
17.B double x;
18.PP
19.B double pow(x, y)
20.br
21.B double x, y;
22.PP
23.B double sqrt(x)
24.br
25.B double x;
26.SH DESCRIPTION
27.I Exp
28returns the exponential function of
29.I x.
30.PP
31.I Log
32returns the natural logarithm of
33.IR x ;
34.I log10
35returns the base 10 logarithm.
36.PP
37.I Pow
38returns
39.I x\u\s8y\s10\d.
40.PP
41.I Sqrt
42returns the square root of
43.I x.
44.SH SEE ALSO
45hypot(3),
46sinh(3),
47intro(2)
48.SH DIAGNOSTICS
49.I Exp
50and
51.I pow
52return a huge value when the correct value would
53overflow;
54.I errno
55is set to ERANGE.
56.I Pow
57returns 0 and sets
58.I errno
59to
60EDOM when the second argument is negative and non-integral and
61when
62both arguments are 0.
63.PP
64.I Log
65returns 0 when
66.I x
67is zero or negative;
68.I errno
69is set to EDOM.
70.PP
71.I Sqrt
72returns 0 when
73.I x
74is negative;
75.I errno
76is set to EDOM.