:

: « (Pascal)»




(Pascal) (Word)


1. 3

2. . 4

3. 5

4. 8

5. 9

()

.

3.

var

yx,xy,l,v,p,ff,ay,by,x:array [0.10] of real;

y,a,b:array[0.10,0.1] of real;

i,n,o:integer;

c,d,h,k:real;

label

lap1;

begin

writeln(' ');

readln(n);

i.

for i:=0 to n do

readln(l[i]);

if (n=1) and (l[1]=0) or (n=2) and (l[2]=0) or (n=3) and (l[3]=0) then begin

writeln(' ');

goto lap1;

end;

writeln(' x');

readln(k);

writeln(' ');

readln(c,d);

o:=5;

h:=abs(d-c)/o;

writeln('=',h:1:1);

writeln(' y(x)= ');

for i:=0 to n-1 do

readln(v[i]);

if n=3 then begin

yx[0]:=v[0];

ay[0]:=v[1];

by[0]:=v[2];

p[0]:=(k*c-l[0]*v[0]-l[1]*v[1]-l[2]*v[2])/l[3];

x[0]:=c;

write(' ');


write(' x y a b ');


write(' ',c:7:7,' ',yx[0]:7:7,' ',ay[0]:7:7,' ',by[0]:7:7,' ');

for i:=0 to o-1 do begin

x[i]:=x[i]+h/2;

y[i,1]:=yx[i]+(h/2)*ay[i];

.

x[i+1]:=x[i]+h/2;

p[i+1]:=(k*xy[i]-l[0]*yx[i+1]-l[1]*ay[i+1]-l[2]*by[i+1])/l[3];

end;

for i:=0 to o-1 do begin


write(' ',xy[i]:7:7,' ',yx[i+1]:7:7,' ',ay[i+1]:7:7,' ',by[i+1]:7:7,' ');

end;

write(' ');

end;

if n=2 then begin

x[0]:=c;

yx[0]:=v[0];

ay[0]:=v[1];

p[0]:=(k*c-l[0]*yx[0]-l[1]*v[1])/l[2];


write(' ');


write(' x y a ');


write(' ',c:7:7,' ',yx[0]:7:7,' ',ay[0]:7:7,' ');

for i:=0 to o-1 do begin

x[i]:=x[i]+h/2;

y[i,1]:=yx[i]+(h/2)*ay[i];

a[i,1]:=ay[i]+(h/2)*p[i];

ff[i]:=(k*x[i]-l[0]*y[i,1]-l[1]*a[i,1])/l[2];

xy[i]:=x[i]+h/2;

yx[i+1]:=yx[i]+h*a[i,1];

ay[i+1]:=ay[i]+h*ff[i];

x[i+1]:=x[i]+h/2;

p[i+1]:=(k*xy[i]-l[0]*yx[i+1]-l[1]*ay[i+1])/l[2];

end;

for i:=0 to o-1 do begin


write(' ',xy[i]:7:7,' ',yx[i+1]:7:7,' ',ay[I+1]:7:7,' ');

end;


write(' ');

end;

if n=1 then begin

x[0]:=c;

yx[0]:=v[0];

p[0]:=(k*x[0]-l[0]*yx[0])/l[1];

for i:=0 to o-1 do begin

x[i]:=x[i]+h/2;

y[i,1]:=yx[i]+(h/2)*p[i];

xy[i]:=x[i]+h/2;

ff[i]:=(k*x[i]-l[0]*y[i,1])/l[1];

yx[i+1]:=yx[i]+h*ff[i];

x[i+1]:=x[i]+h/2;

p[i+1]:=(k*xy[i]-l[0]*yx[i+1])/l[1];

end;


write(' ');


write(' x y ');


write(' ',c:7:7,' ',yx[0]:7:7,' ');

for i:=0 to o-1 do begin


write(' ',xy[i]:7:7,' ',yx[i+1]:7:7,' ');

end;


write(' ');

end;

lap1:readln;

end.

()

4.


:


1. . . . .: , 1978. 512 .

2. . . . .: , 1989. 616 .

3. . ., . . . .: , 1978. 592 .

4. . ., . . Pascal. . .: -, 2005. 480 .

: « (Pascal)»
:
:
: 9
: 2016
: 600 .

*

(-).


?
, ?
.!


: | |

.
: 4,9
8460 .