NAME
cacosh, cacoshf, cacoshl - complex arc hyperbolic cosine
SYNOPSIS
#include <complex.h> double complex cacosh(double complex z); float complex cacoshf(float complex z); long double complex cacoshl(long double complex z); Link with -lm.
DESCRIPTION
These functions calculate the complex arc hyperbolic cosine of z. If y = cacosh(z), then z = ccosh(y). The imaginary part of y is chosen in the interval [-pi,pi]. The real part of y is chosen nonnegative. One has: cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z - 1) / 2))
VERSIONS
These functions first appeared in glibc in version 2.1.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). ┌───────────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├───────────────────────────────┼───────────────┼─────────┤ │cacosh(), cacoshf(), cacoshl() │ Thread safety │ MT-Safe │ └───────────────────────────────┴───────────────┴─────────┘
CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
EXAMPLE
/* Link with "-lm" */ #include <complex.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> int main(int argc, char *argv[]) { double complex z, c, f; if (argc != 3) { fprintf(stderr, "Usage: %s <real> <imag>\n", argv[0]); exit(EXIT_FAILURE); } z = atof(argv[1]) + atof(argv[2]) * I; c = cacosh(z); printf("cacosh() = %6.3f %6.3f*i\n", creal(c), cimag(c)); f = 2 * clog(csqrt((z + 1)/2) + csqrt((z - 1)/2)); printf("formula = %6.3f %6.3f*i\n", creal(f2), cimag(f2)); exit(EXIT_SUCCESS); }
SEE ALSO
acosh(3), cabs(3), ccosh(3), cimag(3), complex(7)
COLOPHON
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2015-04-19 CACOSH(3)
More Linux Commands
manpages/ruserok.3.html
ruserok(3) - routines for returning a stream to a remote com
The rcmd() function is used by the superuser to execute a command on a remote machine using an authentication scheme based on privileged port numbers. The rresv
manpages/glTexEnvfv.3gl.html
glTexEnvfv(3gl) - set texture environment parameters........
A texture environment specifies how texture values are interpreted when a fragment is textured. target must be GL_TEXTURE_ENV. pname can be either GL_TEXTURE_EN
manpages/pututxline.3.html
pututxline(3) - access utmp file entries - Linux man page...
New applications should use the POSIX.1-specified utmpx versions of these functions; see CONFORMING TO. utmpname() sets the name of the utmp-format file for the
manpages/fftest.1.html
fftest(1) tests force-feedback devices. - Linux manual page
fftest provides a variety of tests which can be applied to force-feedback devices. Beware, the tests may damage your device! OPTIONS <device> The device to test
manpages/libtoolize.1.html
libtoolize(1) - manual page for libtoolize 2.4 (Man Page)...
Prepare a package to use libtool. -c, --copy copy files rather than symlinking them --debug enable verbose shell tracing -n, --dry-run print commands rather tha
manpages/mrtg-contrib.1.html
mrtg-contrib(1) Contribution Guidelines for MRTG (Man Page)
If you have written an extension to mrtg or created a bug fix, please consider contributing it to the project. As I get quite a number of contributions every we
manpages/XDestroyIC.3.html
XDestroyIC(3) - create, destroy, and obtain the input method
The XCreateIC function creates a context within the specified input method. Some of the arguments are mandatory at creation time, and the input context will not
manpages/systemd-udevd-control.socket.8.html
systemd-udevd-control.socket(8) Device event managing daemon
systemd-udevd-control.socket.8 - systemd-udevd listens to kernel uevents. For every event, systemd-udevd executes matching instructions specified in udev rules.
manpages/regsub.n.html
regsub(n) - Perform substitutions based on regular expressio
This command matches the regular expression exp against string, and either copies string to the variable whose name is given by varName or returns string if var
manpages/XkbIgnoreExtension.3.html
XkbIgnoreExtension(3) - Prevents core X library keyboard fun
If a server supports the Xkb extension, the X library normally implements preXkb keyboard functions using the Xkb keyboard description and state. The server Xkb
manpages/DMXChangeDesktopAttributes.3.html
DMXChangeDesktopAttributes(3) - change global bounding box
DMXChangeDesktopAttributes() resizes the bounding box of the whole screen when using the Xinerama extension. Otherwise, it has no effect on the screen layout. A
manpages/git-get-tar-commit-id.1.html
git-get-tar-commit-id(1) - Extract commit ID from an archive
Acts as a filter, extracting the commit ID stored in archives created by git archive. It reads only the first 1024 bytes of input, thus its runtime is not influ
