Subversion Repositories Kolibri OS

Rev

Rev 6099 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /* $NetBSD: complex.h,v 1.3 2010/09/15 16:11:30 christos Exp $ */
  2.  
  3. /*
  4.  * Written by Matthias Drochner.
  5.  * Public domain.
  6.  */
  7.  
  8. #ifndef _COMPLEX_H
  9. #define _COMPLEX_H
  10.  
  11. #define complex _Complex
  12. #define _Complex_I 1.0fi
  13. #define I _Complex_I
  14.  
  15. #include <sys/cdefs.h>
  16.  
  17. __BEGIN_DECLS
  18.  
  19. /* 7.3.5 Trigonometric functions */
  20. /* 7.3.5.1 The cacos functions */
  21. double complex cacos(double complex);
  22. float complex cacosf(float complex);
  23.  
  24. /* 7.3.5.2 The casin functions */
  25. double complex casin(double complex);
  26. float complex casinf(float complex);
  27.  
  28. /* 7.3.5.1 The catan functions */
  29. double complex catan(double complex);
  30. float complex catanf(float complex);
  31.  
  32. /* 7.3.5.1 The ccos functions */
  33. double complex ccos(double complex);
  34. float complex ccosf(float complex);
  35.  
  36. /* 7.3.5.1 The csin functions */
  37. double complex csin(double complex);
  38. float complex csinf(float complex);
  39.  
  40. /* 7.3.5.1 The ctan functions */
  41. double complex ctan(double complex);
  42. float complex ctanf(float complex);
  43.  
  44. /* 7.3.6 Hyperbolic functions */
  45. /* 7.3.6.1 The cacosh functions */
  46. double complex cacosh(double complex);
  47. float complex cacoshf(float complex);
  48.  
  49. /* 7.3.6.2 The casinh functions */
  50. double complex casinh(double complex);
  51. float complex casinhf(float complex);
  52.  
  53. /* 7.3.6.3 The catanh functions */
  54. double complex catanh(double complex);
  55. float complex catanhf(float complex);
  56.  
  57. /* 7.3.6.4 The ccosh functions */
  58. double complex ccosh(double complex);
  59. float complex ccoshf(float complex);
  60.  
  61. /* 7.3.6.5 The csinh functions */
  62. double complex csinh(double complex);
  63. float complex csinhf(float complex);
  64.  
  65. /* 7.3.6.6 The ctanh functions */
  66. double complex ctanh(double complex);
  67. float complex ctanhf(float complex);
  68.  
  69. /* 7.3.7 Exponential and logarithmic functions */
  70. /* 7.3.7.1 The cexp functions */
  71. double complex cexp(double complex);
  72. float complex cexpf(float complex);
  73.  
  74. /* 7.3.7.2 The clog functions */
  75. double complex clog(double complex);
  76. float complex clogf(float complex);
  77.  
  78. /* 7.3.8 Power and absolute-value functions */
  79. /* 7.3.8.1 The cabs functions */
  80. /*#ifndef __LIBM0_SOURCE__ */
  81. /* avoid conflict with historical cabs(struct complex) */
  82. /* double cabs(double complex) __RENAME(__c99_cabs);
  83.    float cabsf(float complex) __RENAME(__c99_cabsf);
  84.    #endif
  85. */
  86. long double cabsl(long double complex) ;
  87. double cabs(double complex) ;
  88. float cabsf(float complex) ;
  89.  
  90. /* 7.3.8.2 The cpow functions */
  91. double complex cpow(double complex, double complex);
  92. float complex cpowf(float complex, float complex);
  93.  
  94. /* 7.3.8.3 The csqrt functions */
  95. double complex csqrt(double complex);
  96. float complex csqrtf(float complex);
  97.  
  98. /* 7.3.9 Manipulation functions */
  99. /* 7.3.9.1 The carg functions */
  100. double carg(double complex);
  101. float cargf(float complex);
  102.  
  103. /* 7.3.9.2 The cimag functions */
  104. double cimag(double complex);
  105. float cimagf(float complex);
  106. long double cimagl(long double complex);
  107.  
  108. /* 7.3.9.3 The conj functions */
  109. double complex conj(double complex);
  110. float complex conjf(float complex);
  111.  
  112. /* 7.3.9.4 The cproj functions */
  113. double complex cproj(double complex);
  114. float complex cprojf(float complex);
  115.  
  116. /* 7.3.9.5 The creal functions */
  117. double creal(double complex);
  118. float crealf(float complex);
  119. long double creall(long double complex);
  120.  
  121. #if __GNU_VISIBLE
  122. double complex clog10(double complex);
  123. float complex clog10f(float complex);
  124. #endif
  125.  
  126. #if defined(__CYGWIN__)
  127. long double complex cacosl(long double complex);
  128. long double complex casinl(long double complex);
  129. long double complex catanl(long double complex);
  130. long double complex ccosl(long double complex);
  131. long double complex csinl(long double complex);
  132. long double complex ctanl(long double complex);
  133. long double complex cacoshl(long double complex);
  134. long double complex casinhl(long double complex);
  135. long double complex catanhl(long double complex);
  136. long double complex ccoshl(long double complex);
  137. long double complex csinhl(long double complex);
  138. long double complex ctanhl(long double complex);
  139. long double complex cexpl(long double complex);
  140. long double complex clogl(long double complex);
  141. long double complex cpowl(long double complex, long double complex);
  142. long double complex csqrtl(long double complex);
  143. long double cargl(long double complex);
  144. long double complex conjl(long double complex);
  145. long double complex cprojl(long double complex);
  146. #if __GNU_VISIBLE
  147. long double complex clog10l(long double complex);
  148. #endif
  149. #endif /* __CYGWIN__ */
  150.  
  151. __END_DECLS
  152.  
  153. #endif  /* ! _COMPLEX_H */
  154.