var a,b,c,d,e,f,g,x1,x2:real;begin Write('Введите значения e,f,g: '); Readln(e,f,g); a:=sqrt(abs(sqr(e)-g)/3); Writeln('a= ',a:0:5); b:=abs((e-f)/7); b:=b*sqr(b)-cos(g); Writeln('b= ',b:0:5); c:=f*sqr(f)-g/17; Writeln('c= ',c:0:5); d:=sqr(b)-4*a*c; if d<0 then Writeln('Действителных корней нет') else if d=0 then begin x1:=(-b-sqrt(d))/(2*a); x2:=x1; Writeln('x1=x2= ',x1:0:5) end else begin x1:=(-b-sqrt(d))/(2*a); x2:=(-b+sqrt(d))/(2*a); Writeln('x1= ',x1:0:5,', x2= ',x2:0:5) endend.
Тестовое решение:Введите значения e,f,g: 2 -3 -3a= 1.52753b= 1.35442c= -26.82353x1= -4.65721, x2= 3.77053