フィルターのクリア

Help in solving non-linear equation

3 ビュー (過去 30 日間)
ana take
ana take 2017 年 1 月 16 日
回答済み: Star Strider 2017 年 1 月 16 日
I tried this command to solve the equation inside the brackets: solve('sqrt(((4 + 0.1*cos((PI/6)*t)) - ( 3 + 0.1*sin(cos((PI/3)*t))))^ 2+ ((9 + 0.1*sin((PI/6)*t)) - (6 + 0.1*sin((PI/3)*t)))^ 2)-4 = 0') Warning: Support of character vectors that are not valid variable names or define a number will be removed in a future release. To create symbolic expressions, first create symbolic variables and then use operations on them. > In sym>convertExpression (line 1559) In sym>convertChar (line 1464) In sym>tomupad (line 1216) In sym (line 179) In solve>getEqns (line 405) In solve (line 225) Warning: Do not specify equations and variables as character vectors. Instead, create symbolic variables with syms. > In solve>getEqns (line 445) In solve (line 225)
ans =
Empty sym: 0-by-1
What does this mean?Can anyone help to solve this equation?

採用された回答

Star Strider
Star Strider 2017 年 1 月 16 日
There is no solution, since your function never crosses zero.
Run this to understand your problem:
syms t
f = symfun(sqrt(((4 + 0.1*cos((pi/6)*t)) - ( 3 + 0.1*sin(cos((pi/3)*t))))^ 2+ ((9 + 0.1*sin((pi/6)*t)) - (6 + 0.1*sin((pi/3)*t)))^ 2)-4, t);
figure(1)
fplot(f, [-50, 50])
axis([xlim -1.5 0.5])
grid

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by