Ответы и объяснения

2013-12-12T16:46:40+04:00
const
  pi = 3.18;
  k = 2.7;
var
  f, x: real;
begin
  write('x = ');
  read(x);
  if x < -pi / 2 then writeln('f(x) = ', (2 * sqr(sin(x / 2)) / x));
  if x >= -pi / 2 then writeln('f(x) = ', exp(sqr(x)) + cos(2 * k * x));
end.