Solving trigonometric equation (decoupling)
1 次查看(过去 30 天)
显示 更早的评论
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
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!