|
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, procedure Calculate, seg_058aaf
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Complex_Pack, Text_Io; procedure Calculate is X, Y, Inter : Complex_Pack.Number; Partie_R, Partie_I : Float; package Io is new Text_Io.Float_Io (Float); begin Text_Io.Put ("entrer la partie reelle de X : "); Io.Get (Partie_R); Text_Io.Put ("entrer la partie imaginaire de X : "); Io.Get (Item => Partie_I); X := Complex_Pack.Make (Real_Part => Partie_R, Imaginary_Part => Partie_I); Text_Io.Put ("entrer la partie reelle de Y : "); Io.Get (Item => Partie_R); Text_Io.Put ("entrer la partie imaginaire de Y : "); Io.Get (Item => Partie_I); Y := Complex_Pack.Make (Real_Part => Partie_R, Imaginary_Part => Partie_I); Inter := Complex_Pack."-" (X, Y); Text_Io.New_Line; Text_Io.Put ("X - Y = "); Text_Io.New_Line; Text_Io.Put ("La partie reelle est :"); Io.Put (Complex_Pack.Real_Part (Inter), Aft => 2, Exp => 0); Text_Io.New_Line; Text_Io.Put ("La partie imaginaire est :"); Io.Put (Complex_Pack.Imaginary_Part (Inter), Aft => 2, Exp => 0); Text_Io.New_Line; Inter := Complex_Pack."+" (X, Y); Text_Io.New_Line; Text_Io.Put ("X + Y = "); Text_Io.New_Line; Text_Io.Put ("La partie reelle est :"); Io.Put (Complex_Pack.Real_Part (Inter), Aft => 2, Exp => 0); Text_Io.New_Line; Text_Io.Put ("La partie imaginaire est :"); Io.Put (Complex_Pack.Imaginary_Part (Inter), Aft => 2, Exp => 0); Text_Io.New_Line; end Calculate;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=19 rec1=00 rec2=01 rec3=056 [0x01] rec0=0e rec1=00 rec2=02 rec3=001 tail 0x21766748288d13efc0700 0x42a00088462060003