Just to see if we are talking the same language:

Navigation triangle PZX

LHA = 194.65 degrees (P)

Lat of Z 51.74 degrees

Lat of X 39.24 degrees

Solve for distance p

Thanks

Mike

I drew 194.65 deg X to the West of P which is of course 165.35 deg East (closer) so we are going to get two different answers depending on which way we go around the earth. The longer answer is the one you have specified with the 194.64 difference in longitude.

The angle XPZ is 90 degrees as I drew it so it is a right spherical triangle.
The side x, from P to Z is 51.74 - 39.24 =12.5 deg
The side z from X to P is 194.65 deg given
In this right triangle the side opposite the 90 deg satisfies:
cos p = cos x cos z
cos p = cos 194.65 cos 12.5
cos p = [-.9675][.9763]
cos p = -.9446
p = 160.83 deg.
of course 360 - 160.83 is also valid
so p can also be 199.17 deg which is the way you set it up [the cos of -199.17 is also -.9446]

By the way, my calculator has a special key with the - in parenthesis like (-) for doing things like times negative.

Whoops, that was much too simple. I took the LHA as a side, but it is not except at the equator!

I have to correct the distance z for the latitude of X (I am pretty rusty at this stuff)
the radius from a North south line through earth center perpendicular to that axis is = radius at equator *cos 39.24
Therefore I need to solve a triangle for z before I can do the one you want.
That triangle for z can be S at the equator due south of P , P and X

The relationship between LHA and angle z is that they both have the same chord length between X and P

In other words 2 R sin z/2 = 2 r sin LHA/2
where R is the radius from earth center and r is the distance from the NS axis
We saw that r/R = cos Latitude = cos 39.24
so
sin (z/2) = cos 39.24 sin (194.65/2)
sin(z/2) = .7745 *.9918
sin(z/2)=.7682
z/2 = 50.19
z = 100.38 deg.
---------------------------
Now do the above with z corrected
cos p = cos x cos z
=cos 12.5 cos 100.38
= .9763 * -.1802
=-.1759
so p = 100.13 deg
check my numbers!

To solve for distance p in the navigation triangle PZX, we can use the law of cosines. The law of cosines states that for any triangle with sides of lengths a, b, and c, and an angle opposite side c, the following equation holds:

c^2 = a^2 + b^2 - 2ab * cos(C)

In this case, we want to find side p, which is opposite angle P. We are given the lengths of sides Z and X, as well as the measure of angle P. Here's how we can find distance p:

1. Convert the latitude values of Z and X to radians. Remember that 1 degree is equal to π/180 radians. So, for Z: Z_lat = 51.74 * π/180, and for X: X_lat = 39.24 * π/180.

2. To find the distance p, we'll need to calculate the length of side ZX first. We can use the law of cosines:

ZX^2 = Z^2 + X^2 - 2 * Z * X * cos(LHA)

Here, LHA refers to the longitude hour angle, which is given as 194.65 degrees.

3. Plug in the given values into the equation and solve for ZX^2:

ZX^2 = (sin(Z_lat) * sin(X_lat)) + (cos(Z_lat) * cos(X_lat) * cos(LHA))

4. Take the square root of ZX^2 to find the length of side ZX.

5. Finally, we can find the length of side p using the law of cosines:

p^2 = Z^2 + ZX^2 - 2 * Z * ZX * cos(P)

Since we know the values of Z and ZX, as well as the measure of angle P, we can plug these values into the equation and solve for p:

p^2 = Z^2 + (sqrt(ZX^2)) - 2 * Z * (sqrt(ZX^2)) * cos(P)

Take the square root of p^2 to find the distance p.

By following these steps, you should be able to obtain the value of distance p in the navigation triangle PZX.