Marginal Error of Prayer Directions

  • Context: Undergrad 
  • Thread starter Thread starter pfssassin
  • Start date Start date
  • Tags Tags
    Error Marginal
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
20 replies · 3K views
pfssassin
Messages
16
Reaction score
0
If you are trying to pray towards Mecca for example (a small point on Earth's, assume spherical, surface) and you are standing on the exact other side your angle doesn't matter since every angle you face at will Cross mecca. Now my question is how do you go about calculating the effect of a 1 degree rotation on a point on a sphere that's not exactly opposite to the point of reference (mecca). So if I am for example praying in NY and face the direction they tell me (exactly) but then rotate by 1 degree how much will I miss mecca by?

I can easily do this on a flat surface using basic trig but it gets weird when you take two points on a sphere.

Note: Although irrelevant to the physics of this, I am an atheist. Just curious.
 
Physics news on Phys.org
pfssassin said:
the physics of this,

What physics is involved in this?
 
Dickfore said:
What physics is involved in this?

Actually you are right... this is a math question. Seriously never really considered the fact. Just not a member to any math forums so I thought I'd ask here.
 
The analogue of straight lines on a spherical surface are great circles.
 
Yeah thanks. Just thought about it there can't really be a single formula for it.
 
there is, but depends what you want your input variables to be.
 
What I am looking for is consider drawing a circle between New York (single point) and LA but the circle goes around Earth and NY and LA are not necessarily on the opposite sides of the circle which lies on the sphere. If you change the direction of this sphere by 1 degree from NY, how far would the closest distance between LA and the newly formed circle lying on the Earth (sphere) be?
 
how are the points on the sphere labeled?
 
Not sure what that means.
 
Do you want the points input through their latitudes and longitudes?
 
The distance by which you would miss is:

[tex] s = R \, \varphi \, \sin{\gamma}[/tex]

where

[itex]R[/itex] - radius of the sphere

[itex]\varphi[/itex] - angular deviation (in radians)

[tex] \cos{\gamma} = \sin{\lambda_{1}} \, \sin{\lambda_{2}} + \cos{\lambda_{1}} \, \cos{\lambda_{2}} \, \cos{(\phi_{2} - \phi_{1})}[/tex]

where [itex]\lambda[/itex] is the latitude and [itex]\phi[/itex] the longitude of a point on the sphere.
 
Thanks a lot man. Couple questions:

1. To get y (looking thing) alone just take the inverse cos of the last equation right?
2. what is angular deviation? (googling returned nothing useful)
3. Whats this formula called? I want to see a sample problem so I can actually learn how it works.
4. Lastly latitude and long are degrees right?
Thanks again!
 
EDIT:

Scratch the last formula. The correct one is:

[tex] s = 2 R \, \arcsin{\left[\sin{(\gamma)} \, \sin\left(\frac{\varphi}{2}\right)\right]}[/tex]

I can't draw a diagram now and show my steps in the derivation, but maybe someone else can check if it's correct.
 
angular deviation is the angle that you said is [itex]1^{\circ}[/itex] in the original statement of your problem.

All the angles that are inside a trigonometric function can be degrees if your calculator is set up in degrees. However, if you find the inverse sine (arcsin), the result will be in degrees again (unless you change it to rad). The last formula (for s) assumes that the result is in radians.

I don't know how this formula is called. I just derived it now.
 
Dude. You are ****ing sick. Wish I could pull some **** like that. Working a sample problem will post soon.
 
The formula for [itex]\cos{\gamma}[/itex] is actually the dot product formula for two unit vectors in the direction of the respective points on the sphere and expressing their Cartesian coordinates through the latitude and longitude:

[tex] \left\langle \cos{\lambda} \, \cos{\phi}, \cos{\lambda} \, \sin{\phi}, \sin{\lambda} \right\rangle[/tex]
 
Dickfore said:
The distance by which you would miss is:

[tex] s = R \, \varphi \, \sin{\gamma}[/tex]

where

[itex]R[/itex] - radius of the sphere

[itex]\varphi[/itex] - angular deviation (in radians)

[tex] \cos{\gamma} = \sin{\lambda_{1}} \, \sin{\lambda_{2}} + \cos{\lambda_{1}} \, \cos{\lambda_{2}} \, \cos{(\phi_{2} - \phi_{1})}[/tex]

where [itex]\lambda[/itex] is the latitude and [itex]\phi[/itex] the longitude of a point on the sphere.

Random Place in D.C: 38.895112,-77.036366
Mecca: 21.427378,39.814838


cosL = sin(38.895112)sin(21.427378) +cos(38.895112)cos(21.427378)cos(-77.036366-39.814838)
cosL = -0.097855196092127817015497218386228992559245305387623345867

ArcCos(-0.097855196092127817015497218386228992559245305387623345867) = 1.66880837070653510548192373051960254679143170988820787811 Radians

s = 2(6371.0)arcsin[sin(1.66880837070653510548192373051960254679143170988820787811)sin(pi/360)]

s = 110.61 km

**** dude sick! Thanks so much. If you ever get time to show how its derived it would be much appreciated.
 
Also I may have hit my questions before becoming annoying quota but I was wondering: does this measure the distance on the surface of the sphere or the direct distance between the two points?
 
Example:

New York City: [itex]40^{\circ} \, 43' \, \mathrm{N}, 74^{\circ} 0' \, \mathrm{W}[/itex]

[tex] \lambda_{1} = +\left(40 + \frac{43}{60}\right)^{\circ} = +40.717^{\circ}[/tex]

[tex] \phi_{1} = -\left(74 + \frac{0}{60}\right)^{\circ} = -74.000^{\circ}[/tex]

Mecca: [itex]21^{\circ} \, 25' \, \mathrm{N}, 39^{\circ} 49' \, \mathrm{E}[/itex]

[tex] \lambda_{2} = +\left(21 + \frac{25}{60} \right)^{\circ} = + 21.416^{\circ}[/tex]

[tex] \phi_{2} = +\left(39 + \frac{49}{60}\right)^{\circ} = +39.817^{\circ}[/tex]

[tex] \cos{\gamma} = 0.65232 \times 0.36514 + 0.75794 \times 0.93095 \times (-0.40382)[/tex]

[tex] \cos{\gamma} = -0.04675 \Rightarrow \sin{\gamma} = \sqrt{1 - \cos^{2}{\gamma}} = 0.99891[/tex]

[tex] \sin{0.5^{\circ}} = 0.00873[/tex]

[tex] 2 \times \arcsin{\left(0.99891 \times 0.00873\right)} = 2 \times 0.499 = 0.999^{\circ}[/tex]

You don't need to know the radius of the Earth. You just need to remember that the circumference of a great circle is very close to 40,000 km. Then, an arc with an angle of [itex]0.999^{\circ}[/itex] would correspond to:

[tex] 4 \times 10^{4} \, \mathrm{km} \times \frac{0.999^{\circ}}{360^{\circ}} = 111 \, \mathrm{km}[/tex]
 
pfssassin said:
Also I may have hit my questions before becoming annoying quota but I was wondering: does this measure the distance on the surface of the sphere or the direct distance between the two points?

This measures the shortest distance along the surface. That's why I corrected the first formula.