home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11558 < prev    next >
Encoding:
Text File  |  1992-12-22  |  990 b   |  25 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!rei2!fox
  3. From: fox@rei.com (Fuzzy Fox)
  4. Subject: Re: Floating point error: Stack Overflow - Huh?
  5. Message-ID: <1992Dec21.185539.2482@rei.com>
  6. Date: Mon, 21 Dec 1992 18:55:39 GMT
  7. References: <BzFu1z.MvJ@news.cso.uiuc.edu>
  8. Organization: Recognition Equipment, Inc.
  9. Lines: 14
  10.  
  11. macg9505@uxa.cso.uiuc.edu (Michael Alan Corn) writes:
  12.  
  13. >long double d = acosl(cosl(moon.gamma*rad - sunlong*rad)*cosl(moon.beta*rad));
  14. >long double i = (180 - (d/rad) - (0.1468 * ((1-0.0549*sinl(Mprime))/(1- 0.0167*sinl(M))) * sinl(d)));
  15.  
  16. Perhaps this is the Basic analogue of the ?FORMULA TOO COMPLEX ERROR.
  17. Maybe if you broke up the calculation into parts and then combined them,
  18. using temporary variables.
  19.  
  20. -- 
  21. #ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
  22. #define  TRUE   0  |
  23. #define  FALSE  1  |  "You have been recruited by the Star League to defend
  24. #endif             |     the Frontier against Xur and the Kodan Armada."
  25.