Answer:
Check the explanation
Explanation:
MATLAB code:
%----------------------
function result = dominant(A)
% matrix dimensions
d = size(A);
% for loop over rows
for i = 1:d
% sum of row elements except diagonal element
sum_row =0;
% for loop over columns
for j = 1:d
% adding each elements to sum variable
sum_row = sum_row+ abs(A(i,j));
end
%subratcting diagonal element
sum_row = sum_row-abs(A(i,i));
%checking dominant condition
% failed once means matrix is not diagonal dominant
if abs(A(i,i))< sum_row
result = 'false';
return;
end
end
% dominant condition not failed
result = 'true';
end
% matrix A
A = [ 3 -2 1; 1 -3 2; 1 2 6]
% result
result = dominant(A)
% matrix A
A = [ -2 1 2; 1 3 2; 1 -2 0]
% result
result = dominant(A)
%----------------------
Kindly check the attached output image below.
Uh, I think you mean antonym.
Anyways, here are some antonyms.
Careless, Certain, Foolish, Inattentive, Incautious
Answer:
The answer is "True".
Explanation:
In the given question option is missing, that is "true or false", which can be described as follows:
In the given question, it is declared, that an "arrays12.java" program file is declared So, the class name is "arrays12" because in java class name and the program file name is the same.
- Inside the class, a swap method is called, that first accepts value.
- After accepting the value it is defined as another variable, that swap variable values, that's why the answer to this question is true.