xref: /minix3/include/complex.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /* $NetBSD: complex.h,v 1.4 2013/01/28 23:19:50 matt Exp $ */
27b2d6c3cSBen Gras 
32fe8fb19SBen Gras /*
42fe8fb19SBen Gras  * Written by Matthias Drochner.
52fe8fb19SBen Gras  * Public domain.
62fe8fb19SBen Gras  */
72fe8fb19SBen Gras 
82fe8fb19SBen Gras #ifndef	_COMPLEX_H
92fe8fb19SBen Gras #define	_COMPLEX_H
107b2d6c3cSBen Gras 
117b2d6c3cSBen Gras #define complex _Complex
127b2d6c3cSBen Gras #define _Complex_I 1.0fi
137b2d6c3cSBen Gras #define I _Complex_I
147b2d6c3cSBen Gras 
157b2d6c3cSBen Gras #include <sys/cdefs.h>
167b2d6c3cSBen Gras 
177b2d6c3cSBen Gras __BEGIN_DECLS
187b2d6c3cSBen Gras 
192fe8fb19SBen Gras /* 7.3.5 Trigonometric functions */
202fe8fb19SBen Gras /* 7.3.5.1 The cacos functions */
212fe8fb19SBen Gras double complex cacos(double complex);
222fe8fb19SBen Gras float complex cacosf(float complex);
23*84d9c625SLionel Sambuc long double complex cacosl(long double complex);
247b2d6c3cSBen Gras 
252fe8fb19SBen Gras /* 7.3.5.2 The casin functions */
262fe8fb19SBen Gras double complex casin(double complex);
272fe8fb19SBen Gras float complex casinf(float complex);
28*84d9c625SLionel Sambuc long double complex casinl(long double complex);
292fe8fb19SBen Gras 
302fe8fb19SBen Gras /* 7.3.5.1 The catan functions */
312fe8fb19SBen Gras double complex catan(double complex);
322fe8fb19SBen Gras float complex catanf(float complex);
33*84d9c625SLionel Sambuc long double complex catanl(long double complex);
342fe8fb19SBen Gras 
352fe8fb19SBen Gras /* 7.3.5.1 The ccos functions */
362fe8fb19SBen Gras double complex ccos(double complex);
372fe8fb19SBen Gras float complex ccosf(float complex);
38*84d9c625SLionel Sambuc long double complex ccosl(long double complex);
392fe8fb19SBen Gras 
402fe8fb19SBen Gras /* 7.3.5.1 The csin functions */
412fe8fb19SBen Gras double complex csin(double complex);
422fe8fb19SBen Gras float complex csinf(float complex);
43*84d9c625SLionel Sambuc long double complex csinl(long double complex);
442fe8fb19SBen Gras 
452fe8fb19SBen Gras /* 7.3.5.1 The ctan functions */
462fe8fb19SBen Gras double complex ctan(double complex);
472fe8fb19SBen Gras float complex ctanf(float complex);
48*84d9c625SLionel Sambuc long double complex ctanl(long double complex);
492fe8fb19SBen Gras 
502fe8fb19SBen Gras /* 7.3.6 Hyperbolic functions */
512fe8fb19SBen Gras /* 7.3.6.1 The cacosh functions */
522fe8fb19SBen Gras double complex cacosh(double complex);
532fe8fb19SBen Gras float complex cacoshf(float complex);
54*84d9c625SLionel Sambuc long double complex cacoshl(long double complex);
552fe8fb19SBen Gras 
562fe8fb19SBen Gras /* 7.3.6.2 The casinh functions */
572fe8fb19SBen Gras double complex casinh(double complex);
582fe8fb19SBen Gras float complex casinhf(float complex);
59*84d9c625SLionel Sambuc long double complex casinhl(long double complex);
602fe8fb19SBen Gras 
612fe8fb19SBen Gras /* 7.3.6.3 The catanh functions */
622fe8fb19SBen Gras double complex catanh(double complex);
632fe8fb19SBen Gras float complex catanhf(float complex);
64*84d9c625SLionel Sambuc long double complex catanhl(long double complex);
652fe8fb19SBen Gras 
662fe8fb19SBen Gras /* 7.3.6.4 The ccosh functions */
672fe8fb19SBen Gras double complex ccosh(double complex);
682fe8fb19SBen Gras float complex ccoshf(float complex);
69*84d9c625SLionel Sambuc long double complex ccoshl(long double complex);
702fe8fb19SBen Gras 
712fe8fb19SBen Gras /* 7.3.6.5 The csinh functions */
722fe8fb19SBen Gras double complex csinh(double complex);
732fe8fb19SBen Gras float complex csinhf(float complex);
74*84d9c625SLionel Sambuc long double complex csinhl(long double complex);
752fe8fb19SBen Gras 
762fe8fb19SBen Gras /* 7.3.6.6 The ctanh functions */
772fe8fb19SBen Gras double complex ctanh(double complex);
782fe8fb19SBen Gras float complex ctanhf(float complex);
79*84d9c625SLionel Sambuc long double complex ctanhl(long double complex);
802fe8fb19SBen Gras 
812fe8fb19SBen Gras /* 7.3.7 Exponential and logarithmic functions */
822fe8fb19SBen Gras /* 7.3.7.1 The cexp functions */
832fe8fb19SBen Gras double complex cexp(double complex);
842fe8fb19SBen Gras float complex cexpf(float complex);
85*84d9c625SLionel Sambuc long double complex cexpl(long double complex);
862fe8fb19SBen Gras 
872fe8fb19SBen Gras /* 7.3.7.2 The clog functions */
882fe8fb19SBen Gras double complex clog(double complex);
892fe8fb19SBen Gras float complex clogf(float complex);
90*84d9c625SLionel Sambuc long double complex clogl(long double complex);
912fe8fb19SBen Gras 
922fe8fb19SBen Gras /* 7.3.8 Power and absolute-value functions */
932fe8fb19SBen Gras /* 7.3.8.1 The cabs functions */
947b2d6c3cSBen Gras #ifndef __LIBM0_SOURCE__
957b2d6c3cSBen Gras /* avoid conflict with historical cabs(struct complex) */
967b2d6c3cSBen Gras double cabs(double complex) __RENAME(__c99_cabs);
977b2d6c3cSBen Gras float cabsf(float complex) __RENAME(__c99_cabsf);
98*84d9c625SLionel Sambuc long double cabsl(long double complex) __RENAME(__c99_cabsl);
997b2d6c3cSBen Gras #endif
1002fe8fb19SBen Gras 
1012fe8fb19SBen Gras /* 7.3.8.2 The cpow functions */
1022fe8fb19SBen Gras double complex cpow(double complex, double complex);
1032fe8fb19SBen Gras float complex cpowf(float complex, float complex);
104*84d9c625SLionel Sambuc long double complex cpowl(long double complex, long double complex);
1052fe8fb19SBen Gras 
1062fe8fb19SBen Gras /* 7.3.8.3 The csqrt functions */
1072fe8fb19SBen Gras double complex csqrt(double complex);
1082fe8fb19SBen Gras float complex csqrtf(float complex);
109*84d9c625SLionel Sambuc long double complex csqrtl(long double complex);
1102fe8fb19SBen Gras 
1112fe8fb19SBen Gras /* 7.3.9 Manipulation functions */
1122fe8fb19SBen Gras /* 7.3.9.1 The carg functions */
1137b2d6c3cSBen Gras double carg(double complex);
1147b2d6c3cSBen Gras float cargf(float complex);
115*84d9c625SLionel Sambuc long double cargl(long double complex);
1167b2d6c3cSBen Gras 
1172fe8fb19SBen Gras /* 7.3.9.2 The cimag functions */
1182fe8fb19SBen Gras double cimag(double complex);
1192fe8fb19SBen Gras float cimagf(float complex);
1202fe8fb19SBen Gras long double cimagl(long double complex);
1217b2d6c3cSBen Gras 
1222fe8fb19SBen Gras /* 7.3.9.3 The conj functions */
1232fe8fb19SBen Gras double complex conj(double complex);
1242fe8fb19SBen Gras float complex conjf(float complex);
1252fe8fb19SBen Gras long double complex conjl(long double complex);
1267b2d6c3cSBen Gras 
1272fe8fb19SBen Gras /* 7.3.9.4 The cproj functions */
1282fe8fb19SBen Gras double complex cproj(double complex);
1292fe8fb19SBen Gras float complex cprojf(float complex);
1302fe8fb19SBen Gras long double complex cprojl(long double complex);
1317b2d6c3cSBen Gras 
1322fe8fb19SBen Gras /* 7.3.9.5 The creal functions */
1332fe8fb19SBen Gras double creal(double complex);
1342fe8fb19SBen Gras float crealf(float complex);
1352fe8fb19SBen Gras long double creall(long double complex);
1367b2d6c3cSBen Gras 
1377b2d6c3cSBen Gras __END_DECLS
1382fe8fb19SBen Gras 
1392fe8fb19SBen Gras #endif	/* ! _COMPLEX_H */
140