필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

different results in R2012x and R2013x of function eig for matrices of class sym

조회 수: 1 (최근 30일)
Nanny Wermuth
Nanny Wermuth 2014년 1월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
whos Name Size Bytes Class Attributes
a 1x1 112 sym
mat 5x5 112 sym
a =
a
mat =
[ 1, a^2, a^2, a^2, a]
[ a^2, 1, a^2, a^2, a]
[ a^2, a^2, 1, a^2, a]
[ a^2, a^2, a^2, 1, a]
[ a, a, a, a, 1]
The result of
simplify(prod(eig(mat)))
is up to MATLAB_R2012b
(a^2 - 1)^4
which is the expected result.
Since MATLAB_R2013a the outcome is
(a^2 - 1)^2
How can it be fixed in R2013x?
  댓글 수: 1
Roger Stafford
Roger Stafford 2014년 1월 9일
편집: Roger Stafford 2014년 1월 9일
Yes, (1-a^2)^4 is the correct result. Even my ancient twenty-year-old version of Symbolic Toolbox gets it right. If R2013a gets (1-a^2)^2, that is surely a bug and should be reported to Mathworks.

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 1월 9일
I can reproduce this. Please contact support.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by