| 1 | \section{\module{cmath} ---
|
|---|
| 2 | Mathematical functions for complex numbers}
|
|---|
| 3 |
|
|---|
| 4 | \declaremodule{builtin}{cmath}
|
|---|
| 5 | \modulesynopsis{Mathematical functions for complex numbers.}
|
|---|
| 6 |
|
|---|
| 7 | This module is always available. It provides access to mathematical
|
|---|
| 8 | functions for complex numbers. The functions are:
|
|---|
| 9 |
|
|---|
| 10 | \begin{funcdesc}{acos}{x}
|
|---|
| 11 | Return the arc cosine of \var{x}.
|
|---|
| 12 | There are two branch cuts:
|
|---|
| 13 | One extends right from 1 along the real axis to \infinity, continuous
|
|---|
| 14 | from below.
|
|---|
| 15 | The other extends left from -1 along the real axis to -\infinity,
|
|---|
| 16 | continuous from above.
|
|---|
| 17 | \end{funcdesc}
|
|---|
| 18 |
|
|---|
| 19 | \begin{funcdesc}{acosh}{x}
|
|---|
| 20 | Return the hyperbolic arc cosine of \var{x}.
|
|---|
| 21 | There is one branch cut, extending left from 1 along the real axis
|
|---|
| 22 | to -\infinity, continuous from above.
|
|---|
| 23 | \end{funcdesc}
|
|---|
| 24 |
|
|---|
| 25 | \begin{funcdesc}{asin}{x}
|
|---|
| 26 | Return the arc sine of \var{x}.
|
|---|
| 27 | This has the same branch cuts as \function{acos()}.
|
|---|
| 28 | \end{funcdesc}
|
|---|
| 29 |
|
|---|
| 30 | \begin{funcdesc}{asinh}{x}
|
|---|
| 31 | Return the hyperbolic arc sine of \var{x}.
|
|---|
| 32 | There are two branch cuts, extending left from \plusminus\code{1j} to
|
|---|
| 33 | \plusminus-\infinity\code{j}, both continuous from above.
|
|---|
| 34 | These branch cuts should be considered a bug to be corrected in a
|
|---|
| 35 | future release.
|
|---|
| 36 | The correct branch cuts should extend along the imaginary axis,
|
|---|
| 37 | one from \code{1j} up to \infinity\code{j} and continuous from the
|
|---|
| 38 | right, and one from -\code{1j} down to -\infinity\code{j} and
|
|---|
| 39 | continuous from the left.
|
|---|
| 40 | \end{funcdesc}
|
|---|
| 41 |
|
|---|
| 42 | \begin{funcdesc}{atan}{x}
|
|---|
| 43 | Return the arc tangent of \var{x}.
|
|---|
| 44 | There are two branch cuts:
|
|---|
|
|---|