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

⟦f35b5862b⟧ TextFile

    Length: 920 (0x398)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 

TextFile

PACKAGE BODY Complex_Number IS

   FUNCTION Make (Real, Imag : Float) RETURN Number IS
      X : Number;
   BEGIN
      X.Real := Real;
      X.Imag := Imag;
      RETURN X;
   END Make;


   FUNCTION Real_Part (X : Number) RETURN Float IS
   BEGIN
      RETURN X.Real;
   END Real_Part;


   FUNCTION Imaginary_Part (X : Number) RETURN Float IS
   BEGIN
      RETURN X.Imag;
   END Imaginary_Part;


   FUNCTION Plus (Left, Right : Number) RETURN Number IS
   BEGIN
      RETURN (Left.Real + Right.Real, Left.Imag + Right.Imag);
   END Plus;


   FUNCTION Minus (Left, Right : Number) RETURN Number IS
   BEGIN
      RETURN (Left.Real - Right.Real, Left.Imag - Right.Imag);
   END Minus;


   FUNCTION Image (X : Number) RETURN String IS
   BEGIN
      RETURN "";
   END Image;


   FUNCTION Value (S : String) RETURN Number IS
      X : Number := (0.0, 0.0);
   BEGIN
      RETURN X;

   END Value;
END Complex_Number;