complex.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. /* 7.3.5.1 The catan functions */
  21. double complex catan(double complex);
  22. float complex catanf(float complex);
  23. /* 7.3.5.1 The ccos functions */
  24. double complex ccos(double complex);
  25. float complex ccosf(float complex);
  26. /* 7.3.5.1 The csin functions */
  27. double complex csin(double complex);
  28. float complex csinf(float complex);
  29. /* 7.3.5.1 The ctan functions */
  30. double complex ctan(double complex);
  31. float complex ctanf(float complex);
  32. /* 7.3.6 Hyperbolic functions */
  33. /* 7.3.6.1 The cacosh functions */
  34. double complex cacosh(double complex);
  35. float complex cacoshf(float complex);
  36. /* 7.3.6.2 The casinh functions */
  37. double complex casinh(double complex);
  38. float complex casinhf(float complex);
  39. /* 7.3.6.3 The catanh functions */
  40. double complex catanh(double complex);
  41. float complex catanhf(float complex);
  42. /* 7.3.6.4 The ccosh functions */
  43. double complex ccosh(double complex);
  44. float complex ccoshf(float complex);
  45. /* 7.3.6.5 The csinh functions */
  46. double complex csinh(double complex);
  47. float complex csinhf(float complex);
  48. /* 7.3.6.6 The ctanh functions */
  49. double complex ctanh(double complex);
  50. float complex ctanhf(float complex);
  51. /* 7.3.7 Exponential and logarithmic functions */
  52. /* 7.3.7.1 The cexp functions */
  53. double complex cexp(double complex);
  54. float complex cexpf(float complex);
  55. /* 7.3.7.2 The clog functions */
  56. double complex clog(double complex);
  57. float complex clogf(float complex);
  58. /* 7.3.8 Power and absolute-value functions */
  59. /* 7.3.8.1 The cabs functions */
  60. /*#ifndef __LIBM0_SOURCE__ */
  61. /* avoid conflict with historical cabs(struct complex) */
  62. /* double cabs(double complex) __RENAME(__c99_cabs);
  63. float cabsf(float complex) __RENAME(__c99_cabsf);
  64. #endif
  65. */
  66. double cabs(double complex) ;
  67. float cabsf(float complex) ;
  68. /* 7.3.8.2 The cpow functions */
  69. double complex cpow(double complex, double complex);
  70. float complex cpowf(float complex, float complex);
  71. /* 7.3.8.3 The csqrt functions */
  72. double complex csqrt(double complex);
  73. float complex csqrtf(float complex);
  74. /* 7.3.9 Manipulation functions */
  75. /* 7.3.9.1 The carg functions */
  76. double carg(double complex);
  77. float cargf(float complex);
  78. /* 7.3.9.2 The cimag functions */
  79. double cimag(double complex);
  80. float cimagf(float complex);
  81. /*long double cimagl(long double complex); */
  82. /* 7.3.9.3 The conj functions */
  83. double complex conj(double complex);
  84. float complex conjf(float complex);
  85. /*long double complex conjl(long double complex); */
  86. /* 7.3.9.4 The cproj functions */
  87. double complex cproj(double complex);
  88. float complex cprojf(float complex);
  89. /*long double complex cprojl(long double complex); */
  90. /* 7.3.9.5 The creal functions */
  91. double creal(double complex);
  92. float crealf(float complex);
  93. /*long double creall(long double complex); */
  94. __END_DECLS
  95. #endif /* ! _COMPLEX_H */