Курсовая работа: Розрахунок норм вектору
showMessage ('Convert error! ');
matrRecLink (mainList [nowItem]) ^. vt [vectViev. Col+1]: =saveVal;
vectViev. Cells [vectViev. Col,vectViev. Row]: =FloatToStr (saveVal);
itemNomb. Text: =FloatToStr (saveVal);
end;
end;
end;
end;
end.
Код модуля " MATRIX" :
unit matrix;
interface
const
nmax = 10;
type
size = 1. nmax;
vector = array [size] of real;
matrix_ = array [size,size] of real;
// Vector working ===============================
procedure writeVect (var op1: vector; op2: vector);
procedure ziroVect (var op1: vector);
// - ----------- - ------------------------------
procedure sumVect (op1,op2: vector; var rez: vector);
procedure decVect (op1,op2: vector; var rez: vector);
procedure multVectToNomb (var op1: vector; nomb: real);
function multVectToVect (op1,op2: vector): real;
// NORMS - --
function longOfVect (op1: vector): real;
function absSum (op1: vector): real;