SOLVE command with SYMS
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have the Symbolic Math Toolbox. However, I can't even perform the following operation, which is copied and pasted from the Mathworks website on the usage of Symbolic Math Toolbx.
syms x
solve(x^2 + 4*x + 1 == 0)
The error says the following:
??? Input argument "x0" is undefined.
Error in ==> solve at 56
x=x0;
This isn't really what I'm trying to do. I have a system of non-linear equations and I get a whole different error messages, but the fact that I can't even perform a simple solving operation such as the above makes me think that there's something fundamentally wrong.
Can you please help me?
Thanks,
Eric
3 个评论
采纳的回答
Azzi Abdelmalek
2012-9-6
编辑:Azzi Abdelmalek
2012-9-6
syms x
solve(x^2 + 4*x + 1)
3 个评论
Azzi Abdelmalek
2012-9-6
to solve x^2 + 4*x + 1=5*x+1
solve(x^2 + 4*x + 1-(5*x+1))
Azzi Abdelmalek
2012-9-6
编辑:Azzi Abdelmalek
2012-9-6
or you don't need to use syms variables
solve('x^2 + 4*x + 1=0')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!