casinh


casinh

Calculates the inverse hyperbolic cosine of a number

 include <complex.h> double complex casinh ( double complex z  ); float complex casinhf ( float complex z  ); long double complex casinhl ( long double complex z  ); 

The casinh( ) functions return the complex number whose hyperbolic sine is equal to their argument z.

Example

 double complex v, w, z ; double a = 0.0, b = 0.0; puts("Enter the real and imaginary parts of a complex number:"); if ( scanf("%lf %lf", &a, &b) == 2) {   z = a + b * I;   printf( "z = %.2f %+.2f*I.\n", creal(z), cimag(z) );   v = casin(z);   w = casinh(z);   printf( "z is the sine of %.2f %+.2f*I\n",  creal(v), cimag(v) );   printf( "and the hyperbolic sine of %.2f %+.2f*I.\n",           creal(w), cimag(w) ); } else   printf("Invalid input. \n"); 

See Also

cacosh( ), catanh( ), ccosh( ), csinh( ), ctanh( ); the hyperbolic trigonometry functions for real numbers: acosh( ), atanh( ), sinh( ), cosh( ), and tanh( ); the hyperbolic cosine and inverse hyperbolic sine functions for complex numbers: csinh( ) and casinh( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net