SOLVE command with SYMS
조회 수: 1 (최근 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!