|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 810 (0x32a)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
with Base_Ten;
package body Halstead_Program_Volume is
type Accuracy is digits 6;
-- make Argument of type FLOAT for now
package Log_Base_Ten is new Base_Ten (Argument => Accuracy,
Return_Value => Result);
function Log (Of_Value : in Accuracy) return Result
renames Log_Base_Ten.Log;
procedure Of_Any_Program_Unit (Lc_N : in Vocabulary_Size;
Uc_N : in Program_Length;
V : out Result) is
begin
-- Of_Any_Program_Unit
V := Result (Uc_N) * (Log (Accuracy (Lc_N)) / Log (Accuracy (2.0)));
exception
-- to be changed after the demo
when others =>
V := 0.0;
end Of_Any_Program_Unit;
end Halstead_Program_Volume;