mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 13:43:15 +02:00
7 lines
354 B
Mathematica
7 lines
354 B
Mathematica
|
|
function x = indicatedMethod(Matrix, Vector)
|
||
|
|
[~,Columns] = size(Matrix);
|
||
|
|
checkIfMatrixIsSquareMatrix(Matrix);
|
||
|
|
[Matrix, Vector] = gaussianEliminationWithPartialPivoting(Columns, Matrix, Vector);
|
||
|
|
[Matrix, Vector, x] = backSubstitutionPhase(Columns, Matrix, Vector);
|
||
|
|
x = iterativeResidualCorrection(Matrix, x, Vector);
|
||
|
|
end % end function
|