Autor Beitrag
Alice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 120



BeitragVerfasst: Di 18.09.07 06:44 
hi,

wie übersetzte ich dies hier:

Erg. ergibt sich aus: (1.0 * NLoop * II * 1000) / ((t1 - t0) :12 : 2)

nach delphi?, so etwa:

(1.0 * sqr(Nloop) * 1000) / ( (t1 - t0) / 12 / 2 )

cu

alice
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Di 18.09.07 07:17 
Zitat:
(1.0 * NLoop * II * 1000) / ((t1 - t0) :12 : 2)


II - Was ist das (Variable, mathematisches Zeichen , Pi ...) ?

Ansonsten :
1.0 * NLoop * II * 1000 = NLoop * 1000 * II
((t1 - t0) :12 : 2) = (t1 - t0) / 6
Also :
ausblenden Delphi-Quelltext
1:
dErg = (NLoop * 1000 * II) / ( (t1 - t0) / 6 );					


Aber was II ist, müssen wir vorher noch klären.
In welchem Zusammenhang tritt denn diese Formel auf und was hat das mit FreePascal zu tun?


Edit :
Alles was oben rot ist, ist Quatsch :-)

Habs gefunden, du willst also diesen Code benutzen : whet.pas
Das ist bereits Delphi (DelphiLanguage = ObjektPascal)


Erklärung der Formel:
NLoop, II, t1 und t0 sind Variablen
mit / wird dividiert
mit : wird eine Komma-Zahl formatiert (Var:nVorkammastellen:nNachkommastellen)