Iv 2 equation to convert to get then working in c. I believe that i failed this step so il asking for help.
cos(180-Theta) = -(sin(lat)*cos(Phi)-sin(declin))/(cos(lat)*sin(Phi));
Need function to have only 1 variable at 1 side of equation. Example: Theta = ....
JokKeR,
For example:
cos(180-Theta) = -(sin(lat)*cos(Phi)-sin(declin))/(cos(lat)*sin(Phi));
.
Take the arcCos of both sides.
180-Theta = acos(-(sin(lat)*...etc));
Theta - 180 = -acos(-(sin(lat)*...etc));
Theta = -acos(-(sin(lat)*...etc) + 180;
Regards,
Kral