- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
program lab2;
const n = 5;
var i:integer;
var A, x1, dx:single;
var arrayX : array[1..n] of single;
var arrayY : array[1..n] of single;
begin
readln(A);
x1:= -1 * 2.2 * A;
dx:= A/5;
arrayX[1]:= x1;
for i:=2 to n do
arrayX[i]:= arrayX[i - 1] + dx;
for i:=1 to n do
begin
if (arrayX[i] < 0) then
arrayY[i]:= -1 * sqrt(sqrt(16 * sqr(sqr(A)) + 4 * sqr(A) * sqr(arrayX[i] + A)) - sqr(arrayX[i] + A) - sqr(A))
else
arrayY[i]:= sqrt(sqr(A) - sqr(arrayX[i] + A)) - 2 * A;
writeln(arrayX[i], ' ; ', arrayY[i]);
end;
readln;
end.
someone 13.10.2014 19:07 # +1
TarasB 14.10.2014 00:55 # +4
http://www.gamedev.ru/flame/forum/?id=181583
tirinox 14.10.2014 11:18 # +3
bormand 14.10.2014 19:05 # 0
TarasB 14.10.2014 20:10 # 0
Ещё более ламповый.
http://www.gamedev.ru/flame/forum/?id=193863
Lure Of Chaos 14.10.2014 14:42 # +1
inkanus-gray 14.10.2014 14:44 # +1
Lure Of Chaos 14.10.2014 15:06 # +1
roman-kashitsyn 14.10.2014 17:55 # +3
guest 07.11.2014 23:06 # 0