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