You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
4.3KB

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