paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5779] replaced a wrong powf with a pow - thanx mist


From: antoine drouin
Subject: [paparazzi-commits] [5779] replaced a wrong powf with a pow - thanx mister dieblich
Date: Thu, 02 Sep 2010 11:24:32 +0000

Revision: 5779
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5779
Author:   poine
Date:     2010-09-02 11:24:32 +0000 (Thu, 02 Sep 2010)
Log Message:
-----------
replaced a wrong powf with a pow - thanx mister dieblich

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c

Modified: paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c
===================================================================
--- paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c    2010-09-01 
12:01:47 UTC (rev 5778)
+++ paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c    2010-09-02 
11:24:32 UTC (rev 5779)
@@ -45,7 +45,7 @@
   const double F = 54.*b2*z2;
   const double G = r2 + (1-e2)*z2 - e2*E2;
   const double c = (e2*e2*F*r2)/(G*G*G);
-  const double s = powf( (1 + c + sqrt(c*c + 2*c)), 1./3.);
+  const double s = pow( (1 + c + sqrt(c*c + 2*c)), 1./3.);
   const double s1 = 1+s+1/s;
   const double P = F/(3*s1*s1*G*G);
   const double Q = sqrt(1+2*e2*e2*P);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]