Given two stars with angles of declination and right ascension (d1, a1) and (d2, a2), the angle they subtend is given by the formula
where a1and a2are angles between -180 and 180 degrees, d1and d2are angles between -90 and 90 degrees, a = a2- a1, and d = d2- d1. Write a program to take the declination and right ascension of two stars as command-line arguments and print the angle they subtend. Hint: Be careful about converting from degrees to radians.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here