PROGRAM LAB (INPUT,OUTPUT);
CONST
K = 4.201;
L = 3;
VAR
x, a, b, y: REAL;
BEGIN
WRITE('Enter value for x: ');
READLN(x);
a := sqrt(K * sqrt(x) + 2 - (1 / L) * (exp(2) - exp(-2)));
b := sin(0.5 * arctan(-0.25) * ln(5));
IF a > 2 * b THEN
y := sqrt(3 * a - 5 * b)
ELSE IF a = 2 * b THEN
y := a
ELSE
y := sqrt(3 * a + 5 * b);
WRITELN('Result y = ', y:0:4);
END.
UFJPR1JBTSBMQUIgKElOUFVULE9VVFBVVCk7CkNPTlNUCiAgSyA9IDQuMjAxOwogIEwgPSAzOwoKVkFSCiAgeCwgYSwgYiwgeTogUkVBTDsKCkJFR0lOCiAgV1JJVEUoJ0VudGVyIHZhbHVlIGZvciB4OiAnKTsKICBSRUFETE4oeCk7CgogIGEgOj0gc3FydChLICogc3FydCh4KSArIDIgLSAoMSAvIEwpICogKGV4cCgyKSAtIGV4cCgtMikpKTsKICBiIDo9IHNpbigwLjUgKiBhcmN0YW4oLTAuMjUpICogbG4oNSkpOwoKICBJRiBhID4gMiAqIGIgVEhFTgogICAgeSA6PSBzcXJ0KDMgKiBhIC0gNSAqIGIpCiAgRUxTRSBJRiBhID0gMiAqIGIgVEhFTgogICAgeSA6PSBhCiAgRUxTRQogICAgeSA6PSBzcXJ0KDMgKiBhICsgNSAqIGIpOwoKICBXUklURUxOKCdSZXN1bHQgeSA9ICcsIHk6MDo0KTsKRU5ELgo=