Article View: comp.os.msdos.programmer
Article #6150Re: Floating point error: Stack Overflow - Huh?
From: Fuzzy Fox
Date: Mon, 21 Dec 1992 18:55
Date: Mon, 21 Dec 1992 18:55
14 lines
1014 bytes
1014 bytes
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."
Technical Details
Message-ID:
<1992Dec21.185539.2482@rei.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!rei2!foxReferences:
<BzFu1z.MvJ@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!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