Fixato bugs su gauss, aggiunto check per numeri molto vicini a 0 su gauss, aggiunto esercizi
This commit is contained in:
17
exercises/metodi_diretti_ex3_8.m
Normal file
17
exercises/metodi_diretti_ex3_8.m
Normal file
@@ -0,0 +1,17 @@
|
||||
U=[3,0.1,0.2;0.3,4,-0.1;3.3,4.1,0.1]
|
||||
b=[3.3;4.3;7.5]
|
||||
|
||||
|
||||
%verifica singolarita
|
||||
if det(U) ~= 0
|
||||
disp('non singolare')
|
||||
else
|
||||
disp('singolare')
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user