Pristine Start using Luke's original CLS 1.0 alpha 1
[tsl.git] / lib / complex.h
blob54ade1ef25500bdf7fc3f5c59a2fcdb2965563d7
1 typedef struct {
2 double real, imag;
3 } Complex;
5 #ifndef PI
6 #define PI 3.141592653589793
7 #endif PI
9 extern Complex makecomplex();
10 extern Complex cart2complex(), polar2complex();
11 extern Complex csqrt(), cexp(), clog(), cexpt(), csin(), ccos(), ctan();
12 extern Complex casin(), cacos(), catan();
13 extern Complex cadd(), csub(), cmul(), cdiv();
14 extern double phase(), modulus();