Has anyone used the programming feature of HP Prime to calculate the latitude and longitude of the center point of a set of multiple Longitudes and Latitudes (aka a point that would center a view on all points.

Thanks - Cheers!

(09-25-2018 02:19 PM)MullenJohn Wrote: [ -> ]Has anyone used the programming feature of HP Prime to calculate the latitude and longitude of the center point of a set of multiple Longitudes and Latitudes (aka a point that would center a view on all points.

It's not always possible unless the points all lie on the same side of a great circle.

(09-25-2018 05:18 PM)ijabbott Wrote: [ -> ]It's not always possible unless the points all lie on the same side of a great circle.

Presumbaly the general case is that there are two points, one antipodal to the other.

One case might be preferred in your condition above, though the degenerate case of all points on that great circle would make both points valid? In the case of a random distribution of coordinates, I would guess there might be no simple preferred solution. Perhaps least mean squares summation of the coordinates from the solutions might distinguish one as preferable.

Note that I am not a geographer

(09-25-2018 06:12 PM)ColinJDenman Wrote: [ -> ] (09-25-2018 05:18 PM)ijabbott Wrote: [ -> ]It's not always possible unless the points all lie on the same side of a great circle.

Presumbaly the general case is that there are two points, one antipodal to the other.

One case might be preferred in your condition above, though the degenerate case of all points on that great circle would make both points valid? In the case of a random distribution of coordinates, I would guess there might be no simple preferred solution. Perhaps least mean squares summation of the coordinates from the solutions might distinguish one as preferable.

In general, for a "random" set of points or a set of points lying on a great circle will have two antipodal "average" points as you say, but if the points form a regular (or semiregular) polyhedron, you can't pick just two points.