home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / prev.tar.gz / prev.tar / poly.h < prev    next >
Text File  |  1991-01-29  |  430b  |  26 lines

  1.  
  2. #define    MAX_ORDER    12    
  3. #define    ALG_TOLERANCE    0.001
  4.  
  5. #define    MAXERROR    1.0e-11
  6. #define    RELERROR    1.0e-10
  7. #define    MAXIT        800
  8. #define    MAXP2        32
  9.  
  10. #define    MAXT    1e10
  11.  
  12. /*
  13.  * a coefficient smaller than FUDGE is considered to be zero (0.0).
  14.  *        - this is only done if WORRY_ABOUT_REPEATED_ROOTS
  15.  *        is defined
  16.  *
  17. #define    WORRY_ABOUT_REPEATED_ROOTS
  18.  */
  19. #define    FUDGE        1.0e-12
  20.  
  21. typedef struct sp {
  22.     int    ord;
  23.     double    coef[MAX_ORDER];
  24. } spoly;
  25.  
  26.