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

24 lines
394 B
Mathematica

A = hilb(5);
[L, U] = Alg7(A);
cond(A)
L*U - A
prod(diag(U)) - det(A)
ans =
4.7661e+05
ans =
1.0e-16 *
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 -0.1388
0 0 0 -0.1388 0
ans =
1.6620e-23