Equation with 3 unknowns. how do i find the maximum solution using matlab?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
student36
Messages
1
Reaction score
0
Equation with 3 unknowns. how do i find the maximum solution using matlab??

Hello,

Im stuck in matlab, i have an equation with 3 unknowns. how can i get the maximum answer possible? Is there a way with a 3D graph??

Equation:

F = ( sqrt((b^2 + c^2) -(2b c cos(y))) x M ) / (b c sin(y))

I have M as an answer in terms of y. its <1 x 111 double >

I have the following limits: 0<b<6 , 0<c<6 and 0<y<110

I am looking to get the maximum F, any help is appreciated thanks!
 
Physics news on Phys.org


student36 said:
Hello,

Im stuck in matlab, i have an equation with 3 unknowns. how can i get the maximum answer possible? Is there a way with a 3D graph??

Equation:

F = ( sqrt((b^2 + c^2) -(2b c cos(y))) x M ) / (b c sin(y))

I have M as an answer in terms of y. its <1 x 111 double >

I have the following limits: 0<b<6 , 0<c<6 and 0<y<110

I am looking to get the maximum F, any help is appreciated thanks!
b=10;
c=10;
y=10;
M=11;
f=(sqrt((b.^2 + c.^2)-(2*b*c*cos(y)))*M)/(b*c*sin(y));

Hope this will help you out.