Вот че у меня получаеться.
uses graph;
const zoom = 100;
var x,y,w : Real;
grDriver : Integer;
grMode : Integer;
I,J : Integer;
Color : Byte;
function f(x,y : real):real;
begin
f:=4*x*x+4*x*y+6*y*y-17*x;
end;
begin
w := 1/zoom;
grDriver := Detect;
InitGraph(grDriver,grMode,'c:\tp\bg i\');
For I := 0 To GetMaxX Do
Begin
For J := 0 To GetMaxY Do
Begin
X := (GetMaxX/2-I)/zoom;
Y := (GetMaxY/2-J)/zoom;
Color := Round(f(x,y));
If ((X > -w) And (X < w))
Or ((Y > -w) And (Y < w))
Then Color := 0;
PutPixel(I, J, Color);
End;
End;
readln;
CloseGraph;
end.
uses graph;
const zoom = 100;
var x,y,w : Real;
grDriver : Integer;
grMode : Integer;
I,J : Integer;
Color : Byte;
function f(x,y : real):real;
begin
f:=4*x*x+4*x*y+6*y*y-17*x;
end;
begin
w := 1/zoom;
grDriver := Detect;
InitGraph(grDriver,grMode,'c:\tp\bg i\');
For I := 0 To GetMaxX Do
Begin
For J := 0 To GetMaxY Do
Begin
X := (GetMaxX/2-I)/zoom;
Y := (GetMaxY/2-J)/zoom;
Color := Round(f(x,y));
If ((X > -w) And (X < w))
Or ((Y > -w) And (Y < w))
Then Color := 0;
PutPixel(I, J, Color);
End;
End;
readln;
CloseGraph;
end.
c:\linux\bin
c:\linux\etc\X11\xorg.conf
d:\home\user
Страшный сон линуксоида.
c:\linux\etc\X11\xorg.conf
d:\home\user
Страшный сон линуксоида.