Tudat/Astrodynamics/BasicAstrodynamics/UnitTests/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp
//! Test 1: Test conversion for circular orbits.
Test 1: Test conversion for circular orbits.
Test 1 : Test conversion for circular orbits .
BOOST_AUTO_TEST_CASE( test_convertMeanAnomalyToEccentricAnomaly_circular )
{
    const double testEccentricity = 0.0;
    const double testMeanAnomaly = 1.0472;
    const double referenceEccentricAnomaly = 1.0472;
    const double eccentricAnomaly = convertMeanAnomalyToEccentricAnomaly( testEccentricity,
                                                                          testMeanAnomaly );
    BOOST_CHECK_CLOSE_FRACTION( eccentricAnomaly, referenceEccentricAnomaly,
                                1.0E-13 );
}
BOOST_AUTO_TEST_CASE ( test_convertMeanAnomalyToEccentricAnomaly_circular ) { const double testEccentricity = 0.0 ; const double testMeanAnomaly = 1.0472 ; const double referenceEccentricAnomaly = 1.0472 ; const double eccentricAnomaly = convertMeanAnomalyToEccentricAnomaly ( testEccentricity , testMeanAnomaly ) ; BOOST_CHECK_CLOSE_FRACTION ( eccentricAnomaly , referenceEccentricAnomaly , 1.0E-13 ) ; }
Test 1: Test conversion for circular orbits.
Test 1 : Test conversion for circular orbits .
// Set test value for eccentricity. // Set test value for mean anomaly. // Set reference value for eccentric anomaly; // Compute eccentric anomaly. // Check if computed eccentric anomaly is less than error tolerance.