How to factor symbolic equations
조회 수: 3 (최근 30일)
이전 댓글 표시
I'm trying to factor a symbolic equation but I keep getting errors.
the code is basically this
syms c
SE1=c^2-2*c+1;
SQ1=SE1==25;
factor(SQ1)
and the error I get is
Error using mupadengine/feval_internal
Invalid argument.
Error in sym/factor (line 92)
l = feval_internal(symengine, 'factor', xsym, opt);
I can find nothing online about this issue so either I'm missing something obvious or I'm not searching with the right words.
댓글 수: 0
채택된 답변
Chunru
2021년 11월 11일
syms c
SE1=c^2-2*c+1;
SQ1=SE1==25;
% you can factor a symbolic function but not an equation
factor(SE1)
factor(SE1-25)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!