Filter löschen
Filter löschen

Rational power of a positive definite matrix

1 Ansicht (letzte 30 Tage)
Qian Feng
Qian Feng am 13 Feb. 2017
Kommentiert: Qian Feng am 13 Feb. 2017
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.

Akzeptierte Antwort

John D'Errico
John D'Errico am 13 Feb. 2017
Bearbeitet: John D'Errico am 13 Feb. 2017
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 Kommentar
Qian Feng
Qian Feng am 13 Feb. 2017
Thanks for the suggestion. I should have realized that.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by