Курсовая работа: Решение системы линейных уравнений
procedure N3Click(Sender: TObject);
procedure N4Click(Sender: TObject);
procedure decision;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Formk1: TFormk1;
// formk1: Tmainmenu;
implementation
var
n,m,i,j,k,l,number_of_iteration,min :integer;
delta,E,sum,max,W,tmp :extended;
A : array[1..6,1..6] of extended;
B : array[1..6] of extended;
X : array[1..6] of extended;
Xp: array[1..6] of extended;
am: array[1..200] of integer;
W_all:array[1..200] of extended;
procedure TFormk1.matrix;
begin
randomize;
for i:=1 to n do stringgrid1.cells[i-1,0]:='*X'+inttostr(i);
for i:=0 to n-1 do
for j:=1 to m do
StringGrid1.cells[i,j]:='2';
for i:=0 to n-1 do