Solving trigonometric equation (decoupling)

조회 수: 3 (최근 30일)
HN
HN 2020년 8월 19일
편집: HN 2020년 8월 19일
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

채택된 답변

Alan Stevens
Alan Stevens 2020년 8월 19일
How about just defining the function:
phi = @(psi, theta) atan( sin(psi).*sin(theta)./(cos(psi) + cos(theta)) );
  댓글 수: 4
Alan Stevens
Alan Stevens 2020년 8월 19일
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 2020년 8월 19일
Thank you and apperciated !

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

KSSV
KSSV 2020년 8월 19일
편집: KSSV 2020년 8월 19일
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
KSSV
KSSV 2020년 8월 19일
The same answer syms also gives with futher simplifications.
HN
HN 2020년 8월 19일
편집: HN 2020년 8월 19일
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 !

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by