Skip to content

Documentation / @interstellar-tools/equations / eccentricitySquaredOblateSpheroid

Function: eccentricitySquaredOblateSpheroid() ​

ts
function eccentricitySquaredOblateSpheroid(a: number, c: number): number;

Defined in: cartography/eccentricity-squared-oblate-spheroid.ts:39

Compute first eccentricity squared (e2) for an oblate spheroid.

The first eccentricity describes how much an oblate spheroid (ellipsoid of revolution) deviates from a perfect sphere. For equatorial radius (a) and polar radius (c):

e2=1−c2a2

Notes:

  • (e2) is dimensionless.
  • For a physically valid oblate spheroid with (a≥c>0), (0≤e2<1).
  • This quantity is widely used in geodesy and mapping formulas (e.g., planetographic latitude, geodetic coordinates, map projections).

Parameters ​

ParameterTypeDescription
anumberEquatorial radius (a) (finite, > 0).
cnumberPolar radius (c) (finite, > 0).

Returns ​

number

First eccentricity squared (e2) (dimensionless).

Throws ​

If a or c is not a finite number.

Throws ​

If a <= 0 or c <= 0.

Example ​

ts
// Earth (WGS84-ish radii in meters):
const a = 6378137.0;
const c = 6356752.314245;
const e2 = eccentricitySquaredOblateSpheroid(a, c);

See ​