Rational power of a positive definite matrix
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
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.
その他の回答 (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!