]> git.mxchange.org Git - flightgear.git/blobdiff - Astro/orbits.c
Changed #ifdef FILE_H to #ifdef _FILE_H
[flightgear.git] / Astro / orbits.c
index 5ce2ae9405737b043bd2a628ee3b5b30b9fa8243..432dfc7dd35811df13e3242e69faee143942fa24 100644 (file)
@@ -23,6 +23,7 @@
  **************************************************************************/
 
 
+#include <math.h>
 #include <string.h>
 
 #include <Astro/orbits.h>
@@ -81,7 +82,7 @@ double fgCalcEccAnom(double M, double e)
         do
         {
                E1 = E0 - (E0 - e * sin(E0) - M) / (1 - e * cos(E0));
-            diff = abs(E0 - E1);
+            diff = fabs(E0 - E1);
             E0 = E1;
                }
         while (diff > fgDegToRad(0.001));
@@ -173,10 +174,13 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 19:26:58  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.3  1998/01/22 02:59:27  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 19:26:58  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.1  1998/01/07 03:16:17  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *