Курсовая работа: Розрахунок норм вектору
op1 [i] [j]: =op2 [i] [j];
end;
// ------------- - ziroVect - -------------------
procedure ziroVect (var op1: vector);
var i: size;
begin
for i: =1 to nmax do op1 [i]: =0;
end;
// ------------- - ziroMatr - -------------------
procedure ziroMatr (var op1: matrix_);
var i,j: size;
begin
for i: =1 to nmax do
for j: =1 to nmax do
op1 [i] [j]: =0;
end;
// =================================================
// ------------- - sumVect - --------------------
procedure sumVect (op1,op2: vector; var rez: vector);
var i: size;
begin
for i: =1 to nmax do rez [i]: =op1 [i] +op2 [i];
end;
// ------------- - decVect - --------------------
procedure decVect (op1,op2: vector; var rez: vector);
var i: size;
begin
for i: =1 to nmax do rez [i]: =op1 [i] - op2 [i];
end;