Solving trigonometric equation (decoupling)

I wanted to solve ϕ as a function of other variables
Is is possible to decouple this equation ?
Even matlab symbolic gave me some kind of log function. I don't understand what that mean actually.
any help is apperciated

 Respuesta aceptada

Alan Stevens
Alan Stevens el 19 de Ag. de 2020
How about just defining the function:
phi = @(psi, theta) atan( sin(psi).*sin(theta)./(cos(psi) + cos(theta)) );

4 comentarios

HN
HN el 19 de Ag. de 2020
Editada: HN el 19 de Ag. de 2020
Alan Stevens , did you solve it by hand ? Why the matlab gives such complicated reuslt ?
If possible please give some tip how did you get it.
HN
HN el 19 de Ag. de 2020
Got it Alan Stevens ,
Thank you
Alan Stevens
Alan Stevens el 19 de Ag. de 2020
Yes, I did it by hand; it was a fairly obvious solution! I've no idea why Matlab came up with a complicated solution.
If you add cos(theta)sin(phi) to both sides, then factor out the sin(phi) on the left hand side; then divide both sides by cos(phi) and both sides by cos(psi)+cos(theta), you have tan(phi) = ... .
HN
HN el 19 de Ag. de 2020
Thank you and apperciated !

Iniciar sesión para comentar.

Más respuestas (1)

KSSV
KSSV el 19 de Ag. de 2020
Editada: KSSV el 19 de Ag. de 2020
Hand calculation is also possible.....
syms phi psi theta
eqn = cos(psi)*sin(phi)+cos(theta)*sin(phi)-cos(phi)*sin(psi)*sin(theta)==0
s = solve(eqn,psi)

5 comentarios

HN
HN el 19 de Ag. de 2020
Editada: HN el 19 de Ag. de 2020
This is solution for phi
Actually ψ is given. But, same input to solve ϕ gave me something complex number like solution.
Did you try with phi ?
HN
HN el 19 de Ag. de 2020
Editada: HN el 19 de Ag. de 2020
This is for psi
Any tip for hand calculation ?
KSSV
KSSV el 19 de Ag. de 2020
Editada: KSSV el 19 de Ag. de 2020
KSSV
KSSV el 19 de Ag. de 2020
The same answer syms also gives with futher simplifications.
HN
HN el 19 de Ag. de 2020
Editada: HN el 19 de Ag. de 2020
Yeah, I just got it as soon as I see Alan Stevens 's answer.
First , I used matlab as I usually do along with many other equations and matlab's complicated result set my mind that this problem has complicatation.
And another funny experiance, a Paper with 400 over citation has mislead me in this problem. Eq.15 (in the paper) is what I've been trying to look at.
Thank you very much both of you !

Iniciar sesión para comentar.

Etiquetas

Preguntada:

HN
el 19 de Ag. de 2020

Editada:

HN
el 19 de Ag. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by