itacart.geodesy.inverse_meridian_arc

itacart.geodesy.inverse_meridian_arc(arc_m, *, tol=NEWTON_TOL_RAD, max_iter=NEWTON_MAX_ITER)[source]

Return the latitude whose meridian arc from the equator is arc_m.

Newton iteration on meridian_arc(phi) - arc_m, with meridian_radius() as the derivative in closed form. Since M(phi) > 0 everywhere the arc is strictly monotonic, so the iteration has no saddle and the rectifying-latitude first guess converges in about three steps.

Parameters:
  • arc_m (float) – Signed meridian arc length from the equator, in metres.

  • tol (float, default: NEWTON_TOL_RAD) – Convergence tolerance on the latitude increment, in radians.

  • max_iter (int, default: NEWTON_MAX_ITER) – Iteration cap.

Return type:

float

Returns:

Geodetic latitude in degrees, exactly inverting meridian_arc().

Raises:
  • DomainError – If arc_m is not finite or exceeds the meridian quadrant in absolute value – there is no latitude beyond the pole.

  • ConvergenceError – If Newton fails to converge within max_iter.

Example

>>> round(inverse_meridian_arc(meridian_arc(-33.75)), 12)
-33.75