kepler_equation_solver#

agabpylib.numerical.astronomy.celestialmechanics.kepler_equation_solver(e, M)#

Solve the Kepler equation for the input values of eccentricity and mean anomaly.

Use a root-finding method. The input can consist of two scalar values, a combination of a scalar and a 1D array, or two equally sized 1D arrays.

Parameters:
  • e (float scalar or 1D array) – Value(s) of the eccentricity

  • M (float scalar or 1D array) – Value(s) of the mean anomaly

Returns:

E – Array of eccentric anomaly values.

Return type:

float scalar or 1D array