cacosh(3) Library Functions Manual cacosh(3) cacosh, cacoshf, cacoshl - (libm -lm) #include double complex cacosh(double complex z); float complex cacoshf(float complex z); long double complex cacoshl(long double complex z); z. y = cacosh(z) z = ccosh(y). y [-pi,pi]. y . : cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z - 1) / 2)) attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |cacosh(), | | MT-Safe | |cacoshf(), | | | |cacoshl() | | | +------------+------------------------------------+--------------------+ C11, POSIX.1-2008. C99, POSIX.1-2001. glibc 2.1. /* Link with "-lm" */ #include #include #include #include int main(int argc, char *argv[]) { double complex z, c, f; if (argc != 3) { fprintf(stderr, "Usage: %s \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(f), cimag(f)); exit(EXIT_SUCCESS); } acosh(3), cabs(3), ccosh(3), cimag(3), complex(7) 3 . . : . 6.18 8 2026 cacosh(3)