Курсовая работа: Розрахунок норм вектору
function absMax (op1: vector): real;
var i: size; tmpVal: real;
begin
tmpVal: =op1 [1];
for i: =2 to nmax do if op1 [i] >tmpVal then tmpVal: =op1 [i];
absMax: =tmpVal;
end;
// ================================================
// =============== matrix_ ================
// ================================================
// ------------- - sumMatr - ------------------
procedure sumMatr (op1,op2: matrix_; var rez: matrix_);
var i,j: size;
begin
for i: =1 to nmax do
for j: =1 to nmax do
rez [i] [j]: =op1 [i] [j] +op2 [i] [j];
end;
// ------------- - decMatr - ------------------
procedure decMatr (op1,op2: matrix_; var rez: matrix_);
var i,j: size;
begin
for i: =1 to nmax do
for j: =1 to nmax do
rez [i] [j]: =op1 [i] [j] - op2 [i] [j];
end;
// ------------- - multMatrToNomb - ------------------
procedure multMatrToNomb (var op1: matrix_; nomb: real);
var i,j: size;