Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,26 +0,0 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
|
||||
procedure Jensen_Device is
|
||||
function Sum
|
||||
( I : not null access Float;
|
||||
Lo, Hi : Float;
|
||||
F : access function return Float
|
||||
) return Float is
|
||||
Temp : Float := 0.0;
|
||||
begin
|
||||
I.all := Lo;
|
||||
while I.all <= Hi loop
|
||||
Temp := Temp + F.all;
|
||||
I.all := I.all + 1.0;
|
||||
end loop;
|
||||
return Temp;
|
||||
end Sum;
|
||||
|
||||
I : aliased Float;
|
||||
function Inv_I return Float is
|
||||
begin
|
||||
return 1.0 / I;
|
||||
end Inv_I;
|
||||
begin
|
||||
Put_Line (Float'Image (Sum (I'Access, 1.0, 100.0, Inv_I'Access)));
|
||||
end Jensen_Device;
|
||||
Loading…
Add table
Add a link
Reference in a new issue