필터 지우기
필터 지우기

Rational power of a positive definite matrix

조회 수: 1 (최근 30일)
Qian Feng
Qian Feng 2017년 2월 13일
댓글: Qian Feng 2017년 2월 13일
q = sym([4 2 ; 2 4]);
f = sqrtm(q)^(-1) - sqrtm(q^(-1));
f should be zero here since q is positive definite.
However, the program yielded a non zero f here. Is this due to the calculation error ? Note that I am using symbolic calculation here so there should be no error at all I assume.

채택된 답변

John D'Errico
John D'Errico 2017년 2월 13일
편집: John D'Errico 2017년 2월 13일
Sometimes the answer is just "simple".
simplify(f)
ans =
[ 0, 0]
[ 0, 0]
Symbolic results are not always returned in the most simple possible form.
  댓글 수: 1
Qian Feng
Qian Feng 2017년 2월 13일
Thanks for the suggestion. I should have realized that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by