Aptarimas:Matematika/Sinuso Integralas: Skirtumas tarp puslapio versijų

Ištrintas turinys Pridėtas turinys
246 eilutė:
 
:This benchmark gives result <math>1.97232658481395\cdot 10^{10}</math> after 50 seconds on ~3GHz CPU. Notice, that for sine function calculation ("c:=c+sin(a);") in exactly the same manner result was gotten also in ~50 seconds (47 seconds; result <math>4.12294486750096\cdot 10^{-1}</math>). It makes me think, that sine or natural logarithm is gotten from some kind big database table, rather than calculated. But I check few times and there really is 3-4 seconds difference between sine function and natural logarithm (natural logarithm calculated 3 seconds longer).
 
===Natural logarithm benchmarking 3===
 
var
a:longint;
c:real;
begin
for a:=1 to 1000000000
do
c:=c+123456789012345*ln(a);
writeln(c);
readln();
end.
 
:This benchmark gives result <math>2.43497107044619\cdot 10^{24}</math> after 51 second on ~3GHz CPU.
Grįžti į "Matematika/Sinuso Integralas" puslapį.