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

⟦c9a3f8ce6⟧ TextFile

    Length: 837 (0x345)
    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 Natural_Package;
package body Halstead_Fault_Rate is

    type Accuracy is digits 6;
    package New_Natural is new Natural_Package (Argument => Accuracy,
                                                Return_Value => Result);

    function Ln (Of_Value : in Accuracy) return Result renames New_Natural.Log;

    procedure Of_Any_Program_Unit
                 (P : in Physical_Lines_Count; B_Over_P : out Result) is

        A0 : constant Result := 0.005685;
        A1 : constant Result := 0.002626;
        A2 : constant Result := 0.00004947;

    begin
        -- Of_Any_Program_Unit

        B_Over_P := A0 + A1 * Ln (Accuracy (P)) + A2 * (Ln (Accuracy (P)) ** 2);

    exception
        -- to be changed after the demo
        when others =>
            B_Over_P := 0.0;

    end Of_Any_Program_Unit;

end Halstead_Fault_Rate;