RosettaCodeData/Task/Haversine-formula/Maple/haversine-formula-1.maple
2015-11-18 06:14:39 +00:00

1 line
141 B
Text

distance := (theta1, phi1, theta2, phi2)->2*6378.14*arcsin( sqrt((1-cos(theta2-theta1))/2 + cos(theta1)*cos(theta2)*(1-cos(phi2-phi1))/2) );