kepler4 function

double kepler4(
  1. double e,
  2. double m
)

Approximate solution valid only for small eccentricity.

Implementation

double kepler4(double e, double m) {
  return math.atan2(math.sin(m), math.cos(m) - e);
}