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

⟦8da508592⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Complex, seg_058823

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



package body Complex is
    function Make (Partie_Reelle, Partie_Imaginaire : Float)
                  return Complex.Number is
    begin
        return (Partie_Reelle, Partie_Imaginaire);
    end Make;


    function "+" (X, Y : Number) return Complex.Number is
    begin
        return (X.Partie_Reelle + Y.Partie_Reelle,
                X.Partie_Imaginaire + Y.Partie_Imaginaire);
    end "+";


    function "-" (X, Y : Number) return Complex.Number is
    begin
        return (X.Partie_Reelle - Y.Partie_Reelle,
                X.Partie_Imaginaire - Y.Partie_Imaginaire);

    end "-";

    function "*" (X, Y : Number) return Complex.Number is
    begin
        return (X.Partie_Reelle * X.Partie_Imaginaire -
                X.Partie_Imaginaire * X.Partie_Imaginaire,
                X.Partie_Reelle * Y.Partie_Imaginaire +
                   X.Partie_Imaginaire * Y.Partie_Reelle);
    end "*";

    function "/" (X, Y : Number) return Complex.Number is
    begin
        return (X.Partie_Reelle * Y.Partie_Reelle +
                X.Partie_Imaginaire * Y.Partie_Imaginaire,
                X.Partie_Imaginaire * Y.Partie_Reelle -
                   X.Partie_Reelle * Y.Partie_Imaginaire);
    end "/";

    function Partie_Reelle (X : Number) return Float is
    begin
        return X.Partie_Reelle;
    end Partie_Reelle;


    function Partie_Imaginaire (X : Number) return Float is
    begin
        return X.Partie_Imaginaire;
    end Partie_Imaginaire;
end Complex;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=062
        [0x01] rec0=13 rec1=00 rec2=02 rec3=001
    tail 0x21766047a88c36a2abe15 0x42a00088462060003