Help in solving non-linear equation

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by