redoing dev style to be more test centric, from lessons learned with lisp-matrix.
[CommonLispStat.git] / lib / complex.h
blob3658a8f8e996ac19fcd563114822a5bfdd98ad64
1 /* I hate C programming... */
3 typedef struct {
4 double real, imag;
5 } Complex;
7 #ifndef PI
8 #define PI 3.141592653589793
9 #endif /* PI */
11 extern Complex makecomplex();
12 extern Complex cart2complex();
13 extern Complex polar2complex(double, double);
14 /* extern Complex csqrt(), cexp(), clog(), cexpt(), csin(), ccos(), ctan();
15 extern Complex casin(), cacos(), catan(); */
16 extern Complex cadd(), csub(), cmul(), cdiv();
17 extern /* static */ double phase(Complex);
18 extern double modulus(Complex);