Contents   Index   Search   Previous   Next

A.5 The Numerics Packages

   The library package Numerics is the parent of several child units that provide facilities for mathematical computation. One child, the generic package Generic_Elementary_Functions, is defined in A.5.1, together with nongeneric equivalents; two others, the package Float_Random and the generic package Discrete_Random, are defined in A.5.2. Additional (optional) children are defined in Annex G, ``Numerics''.

Static Semantics

     This paragraph was deleted. 
package Ada.Numerics is
   pragma Pure(Numerics);
   Argument_Error : exception;
   Pi : constant :=
   e  : constant :=
end Ada.Numerics;
   The Argument_Error exception is raised by a subprogram in a child unit of Numerics to signal that one or more of the actual subprogram parameters are outside the domain of the corresponding mathematical function.

Implementation Permissions

   The implementation may specify the values of Pi and e to a larger number of significant digits.
Reason: 51 digits seem more than adequate for all present computers; converted to binary, the values given above are accurate to more than 160 bits. Nevertheless, the permission allows implementations to accommodate unforeseen hardware advances.

Extensions to Ada 83

{extensions to Ada 83} Numerics and its children were not predefined in Ada 83.

Contents   Index   Search   Previous   Next   Legal