var x,f: real;
begin
write('x = ');
readln(x);
if (x>=0)and(x<=1) then f:=sqr(x)-x
else f:=sqr(x)-sin(pi*sqr(x));
writeln('F = ',f:6:4);
end.
Пример:
x = 0.5
F = -0.2500