AAE-NA-Labs/01_Direct-Methods-for-Solving-Linear-Systems/Report/problems/Problem4.m
Sergiusz Warga a3fa9eb91d refac
2023-03-11 20:08:05 +01:00

23 lines
292 B
Matlab

A = [0.835, 0.667;
0.333, 0.266];
b = [0.168; 0.067];
bp = [0.168; 0.066];
B = Alg5([A b])
Bp = Alg5([A bp])
kappa = cond(A)
B =
1.0000 0 1.0000
0 1.0000 -1.0000
Bp =
1.0000 0 -666.0000
0 1.0000 834.0000
kappa =
1.3238e+06