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

 採用された回答

0 投票

直接在命令窗口。
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))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!