Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -18,22 +18,22 @@ var Euler,G,A,Error: double;
|
|||
var N: integer;
|
||||
const Correct =0.57721566490153286060651209008240243104215933593992;
|
||||
|
||||
procedure ShowEulerError(N: int64);
|
||||
{Show Euler number and Error}
|
||||
begin
|
||||
Euler:=ComputeEuler(N);
|
||||
Error:=Correct-Euler;
|
||||
Memo.Lines.Add('N = '+FloatToStrF(N,ffNumber,18,0));
|
||||
Memo.Lines.Add('Euler='+FloatToStrF(Euler,ffFixed,18,18));
|
||||
Memo.Lines.Add('Error='+FloatToStrF(Error,ffFixed,18,18));
|
||||
Memo.Lines.Add('');
|
||||
end;
|
||||
procedure ShowEulerError(N: int64);
|
||||
{Show Euler number and Error}
|
||||
begin
|
||||
Euler:=ComputeEuler(N);
|
||||
Error:=Correct-Euler;
|
||||
Memo.Lines.Add('N = '+FloatToStrF(N,ffNumber,18,0));
|
||||
Memo.Lines.Add('Euler='+FloatToStrF(Euler,ffFixed,18,18));
|
||||
Memo.Lines.Add('Error='+FloatToStrF(Error,ffFixed,18,18));
|
||||
Memo.Lines.Add('');
|
||||
end;
|
||||
|
||||
begin
|
||||
{Compute Euler number with iterations ranging 10 to 10^9}
|
||||
for N:=1 to 9 do
|
||||
begin
|
||||
ShowEulerError(Trunc(Power(10,N)));
|
||||
end;
|
||||
begin
|
||||
ShowEulerError(Trunc(Power(10,N)));
|
||||
end;
|
||||
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue