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, withmeridian_radius()as the derivative in closed form. SinceM(phi) > 0everywhere the arc is strictly monotonic, so the iteration has no saddle and the rectifying-latitude first guess converges in about three steps.- Parameters:
- Return type:
- Returns:
Geodetic latitude in degrees, exactly inverting
meridian_arc().- Raises:
DomainError – If
arc_mis 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