Calculate the Angular Difference from of two Stars.

Astronomy and Astrophysics:

You are probably here to learn how to calculate the angular difference between two stars. I was once in your situation too, but after fe2 hours of reaearch i  got the solution. The first solutionnI got was from a book called “An Introduction to the modern Astroohysics, Carroll Ostlie”. And it was like,

I dont know if it was right or wrong but it didnt gave me the correct answer for me, but pretty much gives me the neraly right answer.

And then i sear hed for another formula in internet and then i came up with the formula of:

And this formula gave me the exact answer that i want.

And if you want to check your answer, here is a good website for you guys. Enjoy!!!
http://celestialwonders.com/tools/starAngleCalc.html