Converting equations.

Status
Not open for further replies.

JoKKeR

Full Member level 2
Joined
Feb 14, 2008
Messages
130
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Estonia
Activity points
2,281
converting equations

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 = ....


cos(Phi )= sin(lat)*sin(declin)+cos(lat)*cos(declin)*cos(ha);
Phi =....



Thank you !
 

cos(180-theta)

Ou K ..


can i do it this way ?
Phi2 = sin(lat)*sin(declin)+cos(lat)*cos(declin)*cos(ha);
Phi =cos(Phi2);
 

cos 180-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
 

This will make final equation shorter
cos(180-x) = - cos x
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…