DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦e20084df4⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, function Arccos, seg_0130bc, separate Generic_Elementary_Functions

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



separate (Generic_Elementary_Functions)

function Arccos (X : Float_Type) return Float_Type is

   Y, Sign_X, Z1, Z2, U, V, Result : Common_Float;

   Zero : constant := 0.0;
   One  : constant := 1.0;
   Two  : constant := 2.0;

   Pi_Lead  : constant Common_Float := 16#3.243#;
   Pi_Trail : constant Common_Float :=
      16#0.F6A88_85A30_8D313_198A2_E0370_7344A_40938#E-3;

begin

-- Filter out exceptional cases.
   Y      := Common_Float (X);
   Sign_X := Copy_Sign (One, Y);
   Y      := abs (Y);

   if Y > One then
      raise Argument_Error;
   end if;

   V := (One - Y) / (One + Y);
   V := Kf_Sqrt (V);
   U := One;
   Kp_Atn (V, U, Z1, Z2);
   Z1 := Z1 + Z1;
   Z2 := Z2 + Z2;


   if Sign_X = One then
      Result := Z1 + Z2;
   else
      Result := (Pi_Lead - Z1) + (Pi_Trail - Z2);
   end if;

   return (Float_Type (Result));

end Arccos;

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=2c rec1=00 rec2=01 rec3=001
    tail 0x2150db4ba82b15167e4be 0x42a00066462061e03