how do i use for loop to fine determinant of Vandermonde matrix?

3 ビュー (過去 30 日間)
Xiaoyan
Xiaoyan 2014 年 11 月 7 日
回答済み: Zoltán Csáti 2014 年 11 月 13 日
how do i use for loop to fine determinant of Vandermonde matrix?

採用された回答

Roger Stafford
Roger Stafford 2014 年 11 月 7 日
Let V be an n-by-n Vandermonde matrix.
d = 1;
for k = 1:n-1
d = d*prod(V(k+1:n,2)-V(k,2));
end % <-- At exit d equals det(V)
This might give you greater accuracy for this special kind of matrix than using 'det'. See
http://en.wikipedia.org/wiki/Vandermonde_matrix

その他の回答 (1 件)

Zoltán Csáti
Zoltán Csáti 2014 年 11 月 13 日
If you want to calculate the determinant of an arbitrary matrix in a loop, you can also do it by using the Levi-Civita symbol.

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by