ich möchte ein programm entwickeln das quadratische Gleichungen löst (ax²+bx+c).
Ich hab überlegt das ich es so machen könnte.
Mein Problem ist die Formel:
Code: Alles auswählen
implementation
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
var a,b,c,x:real;
begin
a:=strtofloat(edit1.text);
b:=strtofloat(edit2.text);
c:=strtofloat(edit3.text);
x:= //Wie berechne ich X?
edit4.text:=floattostr(x1);
edit5.text:=floattostr(x2);
end;
initialization