DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: B T

⟦7a6f6c3cb⟧ TextFile

    Length: 810 (0x32a)
    Types: TextFile
    Names: »B«

Derivation

└─⟦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⟧ 

TextFile

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;