Annotation of OpenXM_contrib/PHC/Ada/Math_Lib/Numbers/multprec_mathematical_functions.ads, Revision 1.1.1.1
1.1 maekawa 1: with Multprec_Floating_Numbers; use Multprec_Floating_Numbers;
2:
3: package Multprec_Mathematical_Functions is
4:
5: -- DESCRIPTION :
6: -- This package provides some special mathematical functions to ensure
7: -- a more portable version of the software.
8:
9: -- CONSTANT :
10:
11: PI : constant := 3.14159_26535_89793_23846_26433_83279_50288;
12:
13: -- EXPONENTIAL AND LOGARITHMIC FUNCTIONS :
14:
15: function "**" ( x,y : Floating_Number ) return Floating_Number;
16:
17: -- DESCRIPTION :
18: -- Returns x**y.
19:
20: function LOG2 ( x : Floating_Number ) return Floating_Number;
21:
22: -- DESCRIPTION :
23: -- Returns the binary logarithm.
24:
25: function LOG10 ( x : Floating_Number ) return Floating_Number;
26:
27: -- DESCRIPTION :
28: -- Returns the decimal logarithm.
29:
30: function SQRT ( x : Floating_Number ) return Floating_Number;
31:
32: -- DSECRIPTION :
33: -- Returns the square root of x.
34:
35: -- TRIGONOMETRIC FUNCTIONS :
36:
37: function SIN ( x : Floating_Number ) return Floating_Number;
38: function COS ( x : Floating_Number ) return Floating_Number;
39: function TAN ( x : Floating_Number ) return Floating_Number;
40:
41: -- DESCRIPTION :
42: -- Returns sine, cosine and tangens of x.
43:
44: function ARCSIN ( x : Floating_Number ) return Floating_Number;
45: function ARCCOS ( x : Floating_Number ) return Floating_Number;
46: function ARCTAN ( x : Floating_Number ) return Floating_Number;
47:
48: -- DESCRIPTION :
49: -- Returns arcsin, arccos and argtan of x.
50:
51: function Radius ( x,y : Floating_Number ) return Floating_Number;
52: function Angle ( x,y : Floating_Number ) return Floating_Number;
53:
54: end Multprec_Mathematical_Functions;
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>