|
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: 6144 (0x1800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package Math_Pack, seg_00af30
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
package Math_Pack is --====================================================================== -- Mathematical Constants --====================================================================== Pi : constant := 3.1415_92653_58979_32384_62643_38327_95029; E : constant := 2.7182_81828_45904_52353_60287_47135_26625; --====================================================================== -- Miscellaneous Mathematical Functions --====================================================================== function Sqrt (X : Float) return Float; function Sqrt (X : Long_Float) return Long_Float; -- Computes square root of X. -- X >= 0.0; --====================================================================== -- Logarithmic functions --====================================================================== function Ln (X : Float) return Float; function Ln (X : Long_Float) return Long_Float; -- Computes the natural logarithm (base e) of x. -- X > 0.0 function Log (X : Float; Base : Float := 10.0) return Float; function Log (X : Long_Float; Base : Long_Float := 10.0) return Float; -- Computes logarithm of X with respect to an arbitrary -- base (default is 10). -- X > 0.0 -- BASE real, but not 0.0 function Exp (X : Float; Base : Float := E) return Float; function Exp (X : Long_Float; Base : Long_Float := E) return Long_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; function Sin (X : Long_Float) return Long_Float; -- Computes sine of X in radians. -- X real function Cos (X : Float) return Float; function Cos (X : Long_Float) return Long_Float; -- Computes cosine of X in radians. -- X real function Tan (X : Float) return Float; function Tan (X : Long_Float) return Long_Float; -- Computes tangent of X in radians. -- X real function Arc_Sin (X : Float) return Float; function Arc_Sin (X : Long_Float) return Long_Float; -- Computes the arc sine of X and produces a result -- in radians. -- -1.0 <= X <= 1.0 function Arc_Cos (X : Float) return Float; function Arc_Cos (X : Long_Float) return Long_Float; -- Computes the arc cosine of X and produces a result -- in radians. -- -1.0 <= X <= 1.0 function Arc_Tan (Y : Float; X : Float := 1.0) return Float; function Arc_Tan (Y : Long_Float; X : Long_Float := 1.0) return Long_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 function Sinh (X : Float) return Float; function Sinh (X : Long_Float) return Long_Float; -- Computes the hyperbolic sine of X. -- X real function Cosh (X : Float) return Float; function Cosh (X : Long_Float) return Long_Float; -- Computes the hyperbolic cosine of X. -- X real function Tanh (X : Float) return Float; function Tanh (X : Long_Float) return Long_Float; -- Computes the hyperbolic tangent of X. function Arc_Tanh (X : Float) return Float; function Arc_Tanh (X : Long_Float) return Long_Float; -- Computes the hyperbolic arctangent of X. -- -1.0 < X < 1.0 --====================================================================== -- 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_Pack;
nblk1=5 nid=0 hdr6=a [0x00] rec0=1b rec1=00 rec2=01 rec3=000 [0x01] rec0=1f rec1=00 rec2=02 rec3=000 [0x02] rec0=1f rec1=00 rec2=03 rec3=052 [0x03] rec0=1e rec1=00 rec2=04 rec3=054 [0x04] rec0=13 rec1=00 rec2=05 rec3=000 tail 0x2170803fa81f94ea85d15 0x42a00088462060003