home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / xlispstat_386.lzh / XLispStat / src3.lzh / Original_Headers / complex.h < prev    next >
C/C++ Source or Header  |  1990-07-30  |  808b  |  24 lines

  1. /* XLISP-STAT 2.1 Copyright (c) 1990, by Luke Tierney                  */
  2. /* Additions to Xlisp 2.1, Copyright (c) 1989 by David Michael Betz    */
  3. /* You may give out copies of this software; for conditions see the    */
  4. /* file COPYING included with this distribution.                       */
  5.  
  6. typedef struct {
  7.   double real, imag;
  8. } Complex;
  9.  
  10. #ifndef PI
  11. #define PI 3.141592653589793
  12. #endif PI
  13.  
  14. # define numberp(x) (floatp(x) || fixp(x))
  15.  
  16. extern Complex makecomplex();
  17. extern Complex cart2complex(), polar2complex();
  18. extern Complex csqrt(), cexp(), clog(), cexpt(), csin(), ccos(), ctan();
  19. extern Complex casin(), cacos(), catan();
  20. extern Complex cadd(), csub(), cmul(), cdiv();
  21. extern double phase(), modulus();
  22. extern LVAL cvcomplex(), newdcomplex(), newicomplex();
  23. extern LVAL realpart(), imagpart();
  24.