Back to index

glibc  2.9
Functions
s_casin.c File Reference
#include <complex.h>
#include <math.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__complex__ double __casin (__complex__ double x)

Function Documentation

__complex__ double __casin ( __complex__ double  x)

Definition at line 26 of file s_casin.c.

{
  __complex__ double res;

  if (isnan (__real__ x) || isnan (__imag__ x))
    {
      if (__real__ x == 0.0)
       {
         res = x;
       }
      else if (__isinf (__real__ x) || __isinf (__imag__ x))
       {
         __real__ res = __nan ("");
         __imag__ res = __copysign (HUGE_VAL, __imag__ x);
       }
      else
       {
         __real__ res = __nan ("");
         __imag__ res = __nan ("");
       }
    }
  else
    {
      __complex__ double y;

      __real__ y = -__imag__ x;
      __imag__ y = __real__ x;

      y = __casinh (y);

      __real__ res = __imag__ y;
      __imag__ res = -__real__ y;
    }

  return res;
}

Here is the call graph for this function:

Here is the caller graph for this function: