|
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 Complexe, seg_02ea05
└─⟦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 Complexe is procedure Make (X : out Nombre; Partie_Reelle : in Float; Partie_Imaginaire : in Float) is begin X.Reelle := Partie_Reelle; X.Imaginaire := Partie_Imaginaire; end Make; function "+" (X, Y : in Nombre) return Nombre is begin return (X.Reelle + Y.Reelle, X.Imaginaire + Y.Imaginaire); end "+"; function "-" (X, Y : in Nombre) return Nombre is begin return (X.Reelle - Y.Reelle, X.Imaginaire - Y.Imaginaire); end "-"; function "*" (X, Y : in Nombre) return Nombre is begin return (X.Reelle * Y.Reelle - X.Imaginaire * Y.Imaginaire, X.Reelle * Y.Imaginaire + Y.Reelle * X.Imaginaire); end "*"; function Partie_Reelle (X : in Nombre) return Float is begin return X.Reelle; end Partie_Reelle; function Partie_Imaginaire (X : in Nombre) return Float is begin return X.Imaginaire; end Partie_Imaginaire; procedure Image (X : in Nombre) is package Io is new Text_Io.Float_Io (Float); begin -- Text_Io.Put (X); Io.Put (Complexe.Partie_Reelle (X), Aft => 2, Exp => 0); Text_Io.Put ("+i"); Io.Put (Complexe.Partie_Imaginaire (X), Aft => 2, Exp => 0); Text_Io.Put_Line (""); end Image; end Complexe;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=23 rec1=00 rec2=01 rec3=066 [0x01] rec0=10 rec1=00 rec2=02 rec3=001 tail 0x21527948684827b6fbf3d 0x42a00088462060003