Help in solving non-linear equation
1 view (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Star Strider
on 16 Jan 2017
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 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox 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!