|
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, function Kf_Acocy, seg_0130c8, separate Generic_Elementary_Functions
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
separate (Generic_Elementary_Functions) function Kf_Acocy (X, Cycle : Float_Type) return Float_Type is Y, Sign_X, Z1, Z2, U, V, Cy, Result : Common_Float; Zero : constant := 0.0; One : constant := 1.0; Two : constant := 2.0; Two_Pi_Inv : constant := 0.15915_49430_91895_33576_88837_63372_51436_2034; begin -- Filter out exceptional cases. Cy := Common_Float (Cycle); if Cy <= Zero then raise Argument_Error; end if; Y := Common_Float (X); Sign_X := Copy_Sign (One, Y); Y := abs (Y); if Y > One then raise Argument_Error; end if; if (Y = One) then if (Sign_X = One) then Result := 0.0; else Result := Cy / Two; end if; return (Float_Type (Result)); end if; if (Y = Zero) then Result := Cy / 4.0; return (Float_Type (Result)); 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) * Two_Pi_Inv) * Cy; else Result := Cy * 0.5 - ((Z1 + Z2) * Two_Pi_Inv) * Cy; end if; return (Float_Type (Result)); end Kf_Acocy;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=2e rec1=00 rec2=01 rec3=002 [0x01] rec0=12 rec1=00 rec2=02 rec3=000 tail 0x2150db53282b1517b1a41 0x42a00066462061e03