mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-28 14:09:13 +02:00
39 lines
594 B
ObjectPascal
39 lines
594 B
ObjectPascal
program spepowte;
|
|
|
|
uses
|
|
typ,
|
|
spe;
|
|
|
|
var
|
|
x, y: ArbFloat;
|
|
t: ArbInt;
|
|
s, h: string;
|
|
|
|
begin
|
|
s := 'spepow';
|
|
Write('program results ' + s + 'te ');
|
|
case SizeOf(ArbFloat) of
|
|
4: writeln('(single)');
|
|
8: writeln('(double)');
|
|
6: writeln('(real)');
|
|
end;
|
|
|
|
x := pi;
|
|
Str(x, h);
|
|
t := Length(h) - 1;
|
|
|
|
while not EOF do
|
|
begin
|
|
readln(x);
|
|
writeln;
|
|
writeln(' x = ', x);
|
|
writeln('': t div 2, 'y', '': t - length(s) div 2, s + '(x, y)');
|
|
while not eoln do
|
|
begin
|
|
Read(y);
|
|
writeln(y, ' ', spepow(x, y));
|
|
end;
|
|
writeln;
|
|
end;
|
|
end.
|