for solving a geodesic problem by reducing it to a set of linear equations and solving it by an iteration method