DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦a1e6c9198⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Calculate, seg_058895

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Complexe, Text_Io;
procedure Calculate is
    X, Y, Z : Complexe.Number;
    package Io is new Text_Io.Float_Io (Float);
begin
    X := Complexe.Make (Real_Part => 5.7, Imaginary_Part => -5.8);
    Y := Complexe.Make (25.7, 18.35);

    Text_Io.Put ("Complexe X   = ");
    Io.Put (Complexe.Real_Part (X), Aft => 2, Exp => 0);
    Text_Io.Put (" + ");
    Io.Put (Complexe.Imaginary_Part (X), Aft => 2, Exp => 0);
    Text_Io.Put (" i ");  
    Text_Io.New_Line;

    Text_Io.Put ("Complexe Y   = ");
    Io.Put (Complexe.Real_Part (Y), Aft => 2, Exp => 0);
    Text_Io.Put (" + ");
    Io.Put (Complexe.Imaginary_Part (Y), Aft => 2, Exp => 0);
    Text_Io.Put (" i ");  
    Text_Io.New_Line;

    Z := Complexe."-" (X, Y);

    Text_Io.Put ("Complexe X-Y = ");
    Io.Put (Complexe.Real_Part (Z), Aft => 2, Exp => 0);
    Text_Io.Put (" + ");
    Io.Put (Complexe.Imaginary_Part (Z), Aft => 2, Exp => 0);
    Text_Io.Put (" i ");  
    Text_Io.New_Line;

    Z := Complexe."+" (X, Y);

    Text_Io.Put ("Complexe X+Y = ");
    Io.Put (Complexe.Real_Part (Z), Aft => 2, Exp => 0);
    Text_Io.Put (" + ");
    Io.Put (Complexe.Imaginary_Part (Z), Aft => 2, Exp => 0);
    Text_Io.Put (" i ");  
    Text_Io.New_Line;


    Text_Io.Put ("*** FIN Calculate ***");
end Calculate;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=022
        [0x01] rec0=0e rec1=00 rec2=02 rec3=001
    tail 0x217661d8c88c38475b071 0x42a00088462060003