calculating centre of gravity with distance between two points
Answers
Answered by
1
This uses the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface – giving an ‘as-the-crow-flies’ distance between the points (ignoring any hills they fly over, of course!).
Haversine
formula:a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)c = 2 ⋅ atan2( √a, √(1−a) )d = R ⋅ cwhereφ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km);
note that angles need to be in radians to pass to trig functions!
Similar questions
India Languages,
7 months ago
Computer Science,
7 months ago
Math,
7 months ago
Physics,
1 year ago
Math,
1 year ago
Biology,
1 year ago