Solving trigonometric equation (decoupling)
조회 수: 1 (최근 30일)
이전 댓글 표시
I wanted to solve ϕ as a function of other variables
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/348248/image.png)
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
댓글 수: 0
채택된 답변
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
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) = ... .
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!