syms x L3 T L5
solve((L3-T)/(L5+tan(x)*T)==tan(x*2),x);
L3 T L5 都是常量,唯有x是变量
运行后,结果如下:
>>fangcheng
>>
没有报错,也没有解
在实际工作中,将x赋于正确的值,应该是有解的,但是用MATLAB就是找不到表达式
请各位学长帮助

 Accepted Answer

0 votes

直接在命令窗口。
syms x L3 T L5
solve((L3-T)/(L5+tan(x)*T)-tan(x*2),x) %你那里加了分号“;”不显示。
ans =
-atan((L5 - (L3^2 + L5^2 - T^2)^(1/2))/(L3 + T))
-atan((L5 + (L3^2 + L5^2 - T^2)^(1/2))/(L3 + T))

More Answers (0)

Categories

Find more on 数学 in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!