| 1 |
------------------------------------------------------------------------------ |
| 2 |
-- -- |
| 3 |
-- GNAT RUN-TIME COMPONENTS -- |
| 4 |
-- -- |
| 5 |
-- A D A . N U M E R I C S -- |
| 6 |
-- -- |
| 7 |
-- S p e c -- |
| 8 |
-- -- |
| 9 |
-- This specification is derived from the Ada Reference Manual for use with -- |
| 10 |
-- GNAT. In accordance with the copyright of that document, you can freely -- |
| 11 |
-- copy and modify this specification, provided that if you redistribute a -- |
| 12 |
-- modified version, any changes that you have made are clearly indicated. -- |
| 13 |
-- -- |
| 14 |
------------------------------------------------------------------------------ |
| 15 |
|
| 16 |
-- This package is the top of the Ada.Numerics hierarchy as defined by ARM |
| 17 |
-- A.5. It provides an exception used by all children and basic mathematical |
| 18 |
-- constants. |
| 19 |
|
| 20 |
package Ada.Numerics is |
| 21 |
pragma Pure; |
| 22 |
|
| 23 |
Argument_Error : exception; |
| 24 |
-- The Argument_Error exception is raised whenever an invalid |
| 25 |
-- value has passed as an argument to the subprograms defined |
| 26 |
-- this this package and its children. |
| 27 |
|
| 28 |
Pi : constant := |
| 29 |
3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511; |
| 30 |
-- The mathematical constant Pi |
| 31 |
|
| 32 |
e : constant := |
| 33 |
2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996; |
| 34 |
-- The mathematical constant e |
| 35 |
|
| 36 |
end Ada.Numerics; |