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

⟦ab9c3bd0f⟧ TextFile

    Length: 1209 (0x4b9)
    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

package body Complexe is

    procedure Affecter (X : in out Nombre;
                        Partie_Reelle : in Float;
                        Partie_Imaginaire : in Float) is
    begin
        X := (Partie_Reelle, Partie_Imaginaire);
    end Affecter;

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

    function "-" (X, Y : in Nombre) return Nombre is
    begin
        return (X.Partie_Reelle - Y.Partie_Reelle,
                X.Partie_Imaginaire - Y.Partie_Imaginaire);
    end "-";

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

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

    function Partie_Imaginaire (X : in Nombre) return Float is
    begin
        return X.Partie_Imaginaire;
    end Partie_Imaginaire;

end Complexe;