How do I find the max value and the unknown variables of f=-cos(theta_A).*cos(theta_B)-sin(theta_A).*sin(theta_B).*sin(phi_A).*sin(phi_B)-cos(phi_A).*cos(phi_B).*sin(theta_A).*sin(theta_B)
2 次查看(过去 30 天)
显示 更早的评论
Where theta_A, theta_B, phi_A, phi_B are unknown variables. So i put the range for theta =0:0.01:pi and phi =0:0.01:2*pi. Please tell me how to put the code , i would be appreciate. Thanks
0 个评论
回答(2 个)
Torsten
2015-7-16
One solution is
theta_A=pi, theta_B=phi_A=phi_B=0
Best wishes
Torsten.
2 个评论
Torsten
2015-7-23
As far as I can see, your expression can never exceed the value of 1, and this value is attained for theta_A=pi, theta_B=phi_A=phi_B=0.
But you can test this using one of the MATLAB tools I mentionned in my first response.
Best wishes
Torsten.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!