|
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 - download
Length: 7168 (0x1c00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package Math_Lib, seg_0221db
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
package Math_Lib is --====================================================================== -- Mathematical Constants --====================================================================== Pi : constant := 3.1415_92653_58979_32384_62643_38327_95028_841972; E : constant := 2.7182_81828_45904_52353_60287_47135_26624_977572; --====================================================================== -- Miscellaneous Mathematical Functions --====================================================================== function Sqrt (X : Float) return Float; -- Computes square root of X. -- X >= 0.0; --====================================================================== -- Logarithmic functions --====================================================================== function Ln (X : Float) return Float; -- Computes the natural logarithm (base e) of x. -- X > 0.0 function Exp (X : Float; Base : Float := E) return Float; -- Computes BASE raised to power of X. The base defaults -- to "e". -- X real -- BASE real, but not 0.0 --====================================================================== -- Trigonometric Functions --====================================================================== function Sin (X : Float) return Float; -- Computes sine of X in radians. -- X real function Cos (X : Float) return Float; -- Computes cosine of X in radians. -- X real function Atan (Y : Float; X : Float := 1.0) return Float; -- If X = 1.0 (default), the arc tangent of Y is -- computed. The result is in radians and lies in the -- interval: -PI/2 <= arc tan <= PI/2. If X /= 1.0, -- the arc tangent of Y/X is returned. The result -- is in radians and lies in the following intervals -- depending of the sign of Y: -- -- Y >= 0, X > 0: 0 <= arc tan < PI/2 -- Y > 0, X <= 0: PI/2 <= arc tan < PI -- Y < 0, X >= 0: 0 > arc tan >= -PI/2 -- Y <= 0, X < 0: -PI/2 > arc tan >= -PI --====================================================================== -- Exceptions --====================================================================== -- NOTE: The exception NUMERIC_ERROR is raised if any -- function in this package is called with an argument -- which has a value which is not in the valid range of -- values for that argument. The user may provide an -- exception handler for this exception. --====================================================================== end Math_Lib;
nblk1=6 nid=4 hdr6=6 [0x00] rec0=1d rec1=00 rec2=01 rec3=028 [0x01] rec0=1f rec1=00 rec2=02 rec3=018 [0x02] rec0=13 rec1=00 rec2=05 rec3=000 [0x03] rec0=1e rec1=00 rec2=04 rec3=054 [0x04] rec0=13 rec1=00 rec2=05 rec3=000 [0x05] rec0=00 rec1=00 rec2=00 rec3=080 tail 0x2171de68083914759e676 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 03 00 48 80 2f 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ┆ H /==========┆ 0x3: 0000 00 06 00 a4 80 3b 20 28 59 20 3a 20 4c 6f 6e 67 ┆ ; (Y : Long┆ 0x6: 0000 00 00 00 0f 80 09 6e 67 5f 46 6c 6f 61 74 3b 09 ┆ ng_Float; ┆