Main index | Section 3 | Options |

Math Library (libm, -lm)

#include <complex.h>

The
`cacos()`,
`casin()`,
and
`catan()`
functions compute the principal value of the inverse cosine, sine,
and tangent of the complex number
z,
respectively.
The
`cacosh()`,
`casinh()`,
and
`catanh()`
functions compute the principal value of the inverse hyperbolic
cosine, sine, and tangent.
The
`cacosf()`,
`casinf()`,
`catanf()`
`cacoshf()`,
`casinhf()`,
and
`catanhf()`
functions perform the same operations in
float
precision.
The
`cacosl()`,
`casinl()`,
`catanl()`
`cacoshl()`,
`casinhl()`,
and
`catanhl()`
functions perform the same operations in
long, double
precision.

There is no universal convention for defining the principal values of these functions. The following table gives the branch cuts, and the corresponding ranges for the return values, adopted by the C language.

Function | Branch Cut(s) | Range |

cacos | (-∞, -1) [cu] (1, ∞) | [0, π] |

casin | (-∞, -1) [cu] (1, ∞) | [-π/2, π/2] |

catan | (-∞*I, -i) [cu] (I, ∞*I) | [-π/2, π/2] |

cacosh | (-∞, 1) | [-π*I, π*I] |

casinh | (-∞*I, -i) [cu] (I, ∞*I) | [-π/2*I, π/2*I] |

catanh | (-∞, -1) [cu] (1, ∞) | [-π/2*I, π/2*I] |

These functions conform to
ISO/IEC 9899:1999 ("ISO C99").

CACOS (3) | February 15, 2017 |

Main index | Section 3 | Options |

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |