@@ -6,48 +6,80 @@ \section{Built-in Module \sectcode{cmath}}
66This module is always available.
77It provides access to mathematical functions for complex numbers.
88The functions are:
9- \iftexi
9+
1010\begin {funcdesc }{acos}{x}
11- \funcline {asin}{x}
12- \funcline {atan}{x}
13- \funcline {cos}{x}
14- \funcline {cosh}{x}
15- \funcline {exp}{x}
16- \funcline {log}{x}
17- \funcline {log10}{x}
18- \funcline {sin}{x}
19- \funcline {sinh}{x}
20- \funcline {sqrt}{x}
21- \funcline {tan}{x}
22- \funcline {tanh}{x}
23- \end {funcdesc }
24- \else
25- \code {acos(\varvars {x})},
26- \code {acosh(\varvars {x})},
27- \code {asin(\varvars {x})},
28- \code {asinh(\varvars {x})},
29- \code {atan(\varvars {x})},
30- \code {atanh(\varvars {x})},
31- \code {cos(\varvars {x})},
32- \code {cosh(\varvars {x})},
33- \code {exp(\varvars {x})},
34- \code {log(\varvars {x})},
35- \code {log10(\varvars {x})},
36- \code {sin(\varvars {x})},
37- \code {sinh(\varvars {x})},
38- \code {sqrt(\varvars {x})},
39- \code {tan(\varvars {x})},
40- \code {tanh(\varvars {x})}.
41- \fi
11+ Return the arc cosine of \var {x}.
12+ \end {funcdesc }
13+
14+ \begin {funcdesc }{acosh}{x}
15+ Return the hyperbolic arc cosine of \var {x}.
16+ \end {funcdesc }
17+
18+ \begin {funcdesc }{asin}{x}
19+ Return the arc sine of \var {x}.
20+ \end {funcdesc }
21+
22+ \begin {funcdesc }{asinh}{x}
23+ Return the hyperbolic arc sine of \var {x}.
24+ \end {funcdesc }
25+
26+ \begin {funcdesc }{atan}{x}
27+ Return the arc tangent of \var {x}.
28+ \end {funcdesc }
29+
30+ \begin {funcdesc }{atanh}{x}
31+ Return the hyperbolic arc tangent of \var {x}.
32+ \end {funcdesc }
33+
34+ \begin {funcdesc }{cos}{x}
35+ Return the cosine of \var {x}.
36+ \end {funcdesc }
37+
38+ \begin {funcdesc }{cosh}{x}
39+ Return the hyperbolic cosine of \var {x}.
40+ \end {funcdesc }
41+
42+ \begin {funcdesc }{exp}{x}
43+ Return the exponential value $ \mbox {e}^x$ .
44+ \end {funcdesc }
45+
46+ \begin {funcdesc }{log}{x}
47+ Return the natural logarithm of \var {x}.
48+ \end {funcdesc }
49+
50+ \begin {funcdesc }{log10}{x}
51+ Return the base-10 logarithm of \var {x}.
52+ \end {funcdesc }
53+
54+ \begin {funcdesc }{sin}{x}
55+ Return the sine of \var {x}.
56+ \end {funcdesc }
57+
58+ \begin {funcdesc }{sinh}{x}
59+ Return the hyperbolic sine of \var {x}.
60+ \end {funcdesc }
61+
62+ \begin {funcdesc }{sqrt}{x}
63+ Return the square root of \var {x}.
64+ \end {funcdesc }
65+
66+ \begin {funcdesc }{tan}{x}
67+ Return the tangent of \var {x}.
68+ \end {funcdesc }
69+
70+ \begin {funcdesc }{tanh}{x}
71+ Return the hyperbolic tangent of \var {x}.
72+ \end {funcdesc }
4273
4374The module also defines two mathematical constants:
44- \iftexi
75+
4576\begin {datadesc }{pi}
46- \dataline {e}
77+ The mathematical constant \emph {pi }, as a real.
78+ \end {datadesc }
79+
80+ \begin {datadesc }{e}
81+ The mathematical constant \emph {e }, as a real.
4782\end {datadesc }
48- \else
49- \code {pi} and \code {e}.
50- \fi
5183
5284Note that the selection of functions is similar, but not identical, to
5385that in module \code {math}. The reason for having two modules is,
0 commit comments