Hab mal ein kleines Prog geschrieben mit dem man die pq-Formel rechnen kann. Interessiert mich nur ob ihrs für nützlich haltet. Sagt mal noch eure verbesserungs vorschläge. http://rapidshare.com/files/36942827/pqformel.exe
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Original von Lord_Nykon
@Chakky
Dann mal her damit ;-)
Will ich mal sehen
MfG
Lord
lbl 3
fix 2
"faktor vor x?"?->F
"p (zahl vor X)="?->P
"Q (andere zahl)="?->Q
p/f->p
q/f->q
-(p/2)->o
p/2->r
clrtext
norm
"x1:"
o+sqrt(r?-q)ausgabe
"x2:"
o-sqrt(r?-q)ausgabe
goto3
procedure TForm1.rechnen(Sender: TObject);
begin
D:= b*b - 4*a*c
if D<0 then
showMessage ('keine Lösung')
else if D=0
then x1:=-b/(2*a)
else
begin x1:=(-b+sqrt(D))/(2*a);
x2:=(-b-sqrt(D))/(2*a);
end;
end;