migliorati gli algoritmi gauss natif e pivot correggendo bug su moltiplicatori, verifica 0 sulla diagonale durante il navi e aggiungendo il vettore pivot al gauss pivot
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
% in matrice triangolare superiore con gauss pivoting parziale
|
||||
% e algoritmo di bottom up con sostituzione
|
||||
|
||||
U=[4,8,12,16;2,9,6,8;0,1,1,4;6,2,2,4]; % matrice di input
|
||||
b=[1;-1;2;1]; %termini noti
|
||||
|
||||
[x,y] = convert_matrix_to_triangular_matrix_gauss_pivoting(U,b);
|
||||
[x1] = linear_system_resolver_triangular_matrix(x,y);
|
||||
x1
|
||||
U=[2,4,-2;1,-1,5;4,1,-2] % matrice di input
|
||||
b=[6;-3;-10] %termini noti
|
||||
|
||||
[x,y,z] = convert_matrix_to_triangular_matrix_gauss_pivoting(U,b)
|
||||
[x1] = linear_system_resolver_triangular_matrix(x,y)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user