Курсовая работа: Автоматизация решения систем линейных алгебраических уравнений
x0,y0: integer;
grDriver: Integer;
grMode: Integer;
ErrCode: Integer;
begin
grDriver: = Detect;
InitGraph (grDriver, grMode,'c: \bps\bin\egavga. bgi');
ErrCode: = GraphResult;
if ErrCode = grOk then
begin
minx: =xc-2*xc;
maxx: =xc+2*xc;
miny: =yc-2*yc;
maxy: =yc+2*yc;
mx: =getmaxx;
mx: =mx/ (maxx-minx);
my: =getmaxy/ (maxy-miny);
y0: =round (abs (xc) *mx);
x0: =round (abs (yc) *my);
setcolor (white);
line (x0,0,x0,getmaxy);
line (0,y0,getmaxx,y0);
setcolor (red);
x1: =x0+round (minx*mx);
y1: =y0-round ( (c1-a1*minx) /b1*my);
x2: =x0+round (maxx*mx);
y2: =y0-round ( (c1-a1*maxx) /b1*my);
line (x1,y1,x2,y2);
setcolor (yellow);