00:01
So import math module, we have the radius of the earth, that's 6 ,371 .01 kilometers.
00:12
And we want to prompt the user for two points in terms of latitude and longitude in degrees.
00:18
So we need to evaluate those.
00:21
So user will input 0 .1, which is latitude and longitude in degrees.
00:37
And then point 2, well just x2, y 2, evaluate the input enter 0 .2, higher 2, jitude, n degrees.
00:59
And then we need to calculate the distance between those based on the great circle.
01:03
So there's going to be a lot of trig functions in here, so there's going to be a lot of math .cosine, sine, arc cosine, but also we have to make sure that the number numbers that go into this equation have to be in radiance.
01:18
So fortunately there's just a simple function to convert degrees to radians because the user's going to give us these numbers in degrees.
01:26
So we need the radius times the inverse cosine, so that's just math.
01:31
Dot a cos of the sign of x1...