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 - download
Index: ┃ B T

⟦a90654a41⟧ TextFile

    Length: 1013 (0x3f5)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Complex, Text_Io;

procedure Test_Complex is  
    use Complex;

    X, Y, Z : Complex.Object;
    I1, I2 : Integer;

    function Get_Integer return Integer is
        An_Integer : Integer;
        package Int_Io is new Text_Io.Integer_Io (Integer);
    begin
        Text_Io.Put ("Un entier (max. 5 chiffres) : ");
        Int_Io.Get (Item => An_Integer, Width => 5);
        Text_Io.Skip_Line;
        return An_Integer;
    exception
        when others =>
            return 0;
    end Get_Integer;

begin  
    I1 := Get_Integer;
    I2 := Get_Integer;  
    Create (I1, I2, X);

    I1 := Get_Integer;
    I2 := Get_Integer;
    Create (I1, I2, Y);

    Copy (X + Y, Z);

    Text_Io.Put_Line (Integer'Image (Get_Re_Part (Z)));
    Text_Io.Put_Line (Integer'Image (Get_Im_Part (Z)));
exception
    when others =>
        begin
            Text_Io.Put_Line ("");
            Text_Io.Put_Line ("Exception stopped execution suddenly !!");
            Text_Io.Put_Line ("");
        end;
end Test_Complex;