Main Content

n2ecc

Eccentricity of ellipse from third flattening

    Description

    example

    ecc = n2ecc(n) computes the eccentricity ecc of an ellipse or an ellipsoid of revolution given the third flattening n.

    Examples

    collapse all

    Find the eccentricity of an ellipse from the third flattening.

    ecc = n2ecc(0.0017)
    ecc = 0.0823
    

    Input Arguments

    collapse all

    Third flattening of the ellipse, specified as a numeric scalar. The input n is defined as (ab)/(a+b), where a is the semimajor axis and b is the semiminor axis.

    Data Types: single | double

    Output Arguments

    collapse all

    Eccentricity of the ellipse, returned as a numeric scalar in the range [0, 1].

    Version History

    Introduced before R2006a

    expand all

    See Also

    |