Changeset 8370 in ntrip for branches/BNC_2.12/src/ephemeris.cpp
- Timestamp:
- Jun 11, 2018, 11:39:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/ephemeris.cpp
r8218 r8370 335 335 double E = M; 336 336 double E_last; 337 int nLoop = 0; 337 338 do { 338 339 E_last = E; 339 340 E = M + _e*sin(E); 341 342 if (++nLoop == 100) { 343 return failure; 344 } 340 345 } while ( fabs(E-E_last)*a0 > 0.001 ); 341 346 double v = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) ); … … 921 926 double E = M; 922 927 double E_last; 928 int nLoop = 0; 923 929 do { 924 930 E_last = E; 925 931 E = M + _e*sin(E); 932 933 if (++nLoop == 100) { 934 return failure; 935 } 926 936 } while ( fabs(E-E_last)*a0 > 0.001 ); 927 937 double v = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) );
Note:
See TracChangeset
for help on using the changeset viewer.