Distance and Azimuth Calculation

  • Thread starter Thread starter marlan_msr
  • Start date Start date
  • Tags Tags
    Calculation
AI Thread Summary
To calculate the distance and azimuth between two points on Earth using spherical trigonometry, one can apply the sine and cosine rules in spherical triangles. The formulas involve the coordinates of the points and their latitudes and longitudes, allowing for accurate calculations of distance and azimuth. An alternative method involves using Cartesian coordinates, where the differences in x and y coordinates (Dx and Dy) are computed to find the distance using the Pythagorean theorem and the azimuth using the arctangent function. Adjustments to the azimuth are necessary based on the signs of Dx and Dy. These methods provide a comprehensive approach to determining distances and bearings on a spherical surface.
marlan_msr
Messages
2
Reaction score
0
I hope you could help me on this.
Is there anyone can tell how to calculate azimuth and distance of two points on earth, the points is in two-dimensional cartesian format, using spherical trigonometri for more accurate calculation. If you have reference or you have sample of answered exercise how to calculate it, please let me know. Thx.
 
Mathematics news on Phys.org
are you referring to aeronautical navigation?
 
no, what I mean is how to calculate distance and azimuth/bearing if you have a pair of site coodinates (in two-dimensional cartesian format) using spherical trigonometri (spherical triangels, not just a planar triangels) ?
 
you can use

x = p sin @ cos #

y = p sin @ sin #

z = p cos @

where p is the distance from the center of the sphere

@ is the angle made from the positive x-axis to the pprojection of the point onto the x y plane

and # is the angle from the positive z - axis to the point
 
All this is calculated by the sinus and cosine rule. In any spherical triangle call the corners A, B and C and the opposite sides a, b and c. Then the sinus rule is: sin(A)/sin(a)=sin(B)/sin(b)=sin(C)/sin(c) or in words: the ratio between the sinus of an angle and the sinus of its opposite side is equal for all three pairs.
The cosine rule: cos(a)=cos(b)cos(c)+sin(b)sin(c)cosA which may be applied for the other sides as well of course.
So in calculating distance and azimuth (or bearing/course) let distance be d, the latitude of place A is a and of place B is b and the angle between the meridians at the pole is the difference in longitude, which I'll call P, then applying the cosine rule gives you:
cos(d)=cos(90-a)cos(90-b)+sin(90-a)sin(90-b)cos(P) or
cos(d)=sin(a)sin(b)+cos(a)cos(b)cos(P)
Then calculate azimuth by the sinus rule:
sin(A)=sin(P)sin(90-b)/sin(d) from A to B or sin(B)=sin(P)sin(90-a)/sin(d) from B to A.
or sin(A)=sin(P)cod(b)/sin(d) and sin(B)=sin(P)cos(a)/sin(d) resp.
Please remember to "make sense" of your output, because for example invsin(0,5) gives you 030, 150, 210 and 330.
In celestial navigation there are equivalent calculations. Please let me know if you want to learn more about that.
 
Last edited:
Inverse

The easiest way to get a distance and an azimuth between two known points is an inverse calculation. Subtract the x coordinate of the destination point from the x coord. of the starting point. Perform the same operation for the y coordinates. Call these values Dx and Dy respectively. Now, take the square root of Dx squared plus DY squared this will give you the distance between the two points. If you take the Arctan of Dx/Dy you will get the azimuth. Note, If Dx and Dy are positive your azimuth is good as is. If Dx is positive and DY is negative add 180 degress to your azimuth. If both Dx and Dy are negative add 180 degrees to your azimuth. If Dx is negative and Dy is Positive add 360 degrees to your azimuth.
 
Last edited:
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Back
Top