csinh


csinh

Calculates the hyperbolic sine of a complex number

 #include <complex.h> double complex csinh ( double complex z  ); float complex csinhf ( float complex z  ); long double complex csinhl ( long double complex z  ); 

The hyperbolic sine of a complex number z is equal to (exp(z) - exp(-z)) / 2. The csinh functions return the hyperbolic sine of their complex argument.

Example

 double complex v, w, z = -1.2 + 3.4 * I; v = csinh( z ); w = 0.5 * ( cexp(z) - cexp(-z) ); printf( "The csinh( ) function returns %.2f %+.2f*I.\n",         creal(v), cimag(v) ); printf( "Using the cexp( ) function, the result is %.2f %+.2f*I.\n",         creal(w), cimag(w) ); 

This code produces the following output:

 The csinh( ) function returns 1.46 -0.46*I. Using the cexp( ) function, the result is 1.46 -0.46*I. 

See Also

ccosh( ), ctanh( ), cacosh( ), casinh( ), catanh( )



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