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

⟦6e1ec1deb⟧ TextFile

    Length: 1219 (0x4c3)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Text_Io;
package body Complex is

    function Make (Re, Im : Integer) return Object is
    begin
        return (Real_Part => Re, Imaginary_Part => Im);
    end Make;


    function "+" (Left, Right : Object) return Object is
    begin
        return (Real_Part => Left.Real_Part + Right.Real_Part,
                Imaginary_Part => Left.Imaginary_Part + Right.Imaginary_Part);
    end "+";


    function "-" (Left, Right : Object) return Object is
        Z : Object;
    begin
        Z.Real_Part := -Right.Real_Part;
        Z.Imaginary_Part := -Right.Imaginary_Part;
        return (Left + Z);
    end "-";


    function "*" (Left, Right : Object) return Object is
    begin
        [statement]

    end "*";


    function "*" (Left : Integer; Right : Object) return Object is

    begin
        [statement]

    end "*";


    function "*" (Left : Object; Right : Integer) return Object is

    begin
        [statement]

    end "*";



    procedure Put (Z : Object) is
        Re, Im : Integer;
    begin
        Text_Io.Put (Integer'Image (Z.Real_Part));
        Text_Io.Put (" + j *");
        Text_Io.Put (Integer'Image (Z.Imaginary_Part));
        Text_Io.Put_Line ("");
    end Put;

end Complex;