DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 1201 (0x4b1) Types: TextFile Names: »B«
└─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS └─ ⟦91c658230⟧ »DATA« └─⟦458657fb6⟧ └─⟦1472c4407⟧ └─⟦this⟧ └─⟦d10a02448⟧ Bits:30000409 8mm tape, Rational 1000, ENVIRONMENT, D_12_7_3 └─ ⟦fc9b38f02⟧ »DATA« └─⟦9b46a407a⟧ └─⟦2e03b931c⟧ └─⟦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;