|
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: 4096 (0x1000) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Complexe, seg_0476ce
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io; package body Complexe is function "+" (Operande_1, Operande_2 : in Object) return Object is Result : Object; begin Result.Real_Part := Operande_1.Real_Part + Operande_2.Real_Part; Result.Imag_Part := Operande_1.Imag_Part + Operande_2.Imag_Part; return Result; end "+"; function "-" (Operande_1, Operande_2 : in Object) return Object is Result : Object; begin Result.Real_Part := Operande_1.Real_Part - Operande_2.Real_Part; Result.Imag_Part := Operande_1.Imag_Part - Operande_2.Imag_Part; return Result; end "-"; function "*" (Operande_1, Operande_2 : in Object) return Object is Result : Object; begin Result.Real_Part := (Operande_1.Real_Part * Operande_2.Real_Part) - (Operande_1.Imag_Part * Operande_2.Imag_Part); Result.Imag_Part := (Operande_1.Imag_Part * Operande_2.Real_Part) + (Operande_2.Imag_Part * Operande_1.Real_Part); return Result; end "*"; procedure Print (Obj : in Object) is use Io_Real; begin Text_Io.Put_Line ("le nombre complexe vaut:"); Put (Obj.Real_Part); if Obj.Imag_Part > 0.0 then Text_Io.Put ("+"); end if; Put (Obj.Imag_Part); Text_Io.Put ("i"); end Print; procedure Create (Obj : in out Object; Real_Part, Imaginary_Part : Real) is begin Obj.Real_Part := Real_Part; Obj.Imag_Part := Imaginary_Part; end Create; end Complexe;
nblk1=3 nid=3 hdr6=4 [0x00] rec0=1d rec1=00 rec2=01 rec3=096 [0x01] rec0=1a rec1=00 rec2=02 rec3=000 [0x02] rec0=06 rec1=00 rec2=03 rec3=000 tail 0x2174addee8654459013fb 0x42a00088462060003 Free Block Chain: 0x3: 0000 00 00 00 82 00 09 20 20 20 20 62 65 67 69 6e 09 ┆ begin ┆