Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Converting equations.

Status
Not open for further replies.

JoKKeR

Full Member level 2
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top