Tudat/Astrodynamics/BasicAstrodynamics/UnitTests/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp
//! Test 6: Test large number of anomalies for near-parabolic orbits (double).
Test 6: Test large number of anomalies for near-parabolic orbits (double).
Test 6 : Test large number of anomalies for near - parabolic orbits ( double ) .
BOOST_AUTO_TEST_CASE( test_convertMeanAnomalyToEccentricAnomaly_nearParabolic_random_double )
{
    long double ratioOfPrecision = std::numeric_limits< long double >::epsilon( ) /
            std::numeric_limits< double >::epsilon( );
    testMeanToEccentricAnomalyConversions< double >(
                "DoubleParabolic", 1.0E-13, 1, TUDAT_NAN, TUDAT_NAN, 1.0 - 1.0e-15 );
    testMeanToEccentricAnomalyConversions< long double >(
                "LongDoubleParabolic", 1.0E-13L * ratioOfPrecision, 1, TUDAT_NAN, TUDAT_NAN,
                1.0L - 1.0e-15L * ratioOfPrecision );
    testMeanToEccentricAnomalyConversions< double >(
                "DoubleEccentric", 1.0E-15, 0, 0.0, 1.0 - 1.0e-11 );
    testMeanToEccentricAnomalyConversions< long double >(
                "LongDoubleEccentric", 1.0E-15L * ratioOfPrecision, 0, 0.0,
                1.0L - 1.0e-11L * ratioOfPrecision );
}
BOOST_AUTO_TEST_CASE ( test_convertMeanAnomalyToEccentricAnomaly_nearParabolic_random_double ) { long double ratioOfPrecision = std :: numeric_limits < long double > :: epsilon ( ) / std :: numeric_limits < double > :: epsilon ( ) ; testMeanToEccentricAnomalyConversions < double > ( " " , 1.0E-13 , 1 , TUDAT_NAN , TUDAT_NAN , 1.0 - 1.0e-15 ) ; testMeanToEccentricAnomalyConversions < long double > ( " " , 1.0E-13L * ratioOfPrecision , 1 , TUDAT_NAN , TUDAT_NAN , 1.0L - 1.0e-15L * ratioOfPrecision ) ; testMeanToEccentricAnomalyConversions < double > ( " " , 1.0E-15 , 0 , 0.0 , 1.0 - 1.0e-11 ) ; testMeanToEccentricAnomalyConversions < long double > ( " " , 1.0E-15L * ratioOfPrecision , 0 , 0.0 , 1.0L - 1.0e-11L * ratioOfPrecision ) ; }
Test 6: Test large number of anomalies for near-parabolic orbits (double).
Test 6 : Test large number of anomalies for near - parabolic orbits ( double ) .
// Test random conversions for near-parabolic orbits // Test random conversions for random orbits