|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Complex, seg_02ebb8
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
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;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=2d rec1=00 rec2=01 rec3=00e
[0x01] rec0=11 rec1=00 rec2=02 rec3=001
tail 0x21527ab908485809fca44 0x42a00088462060003