DocAda(tm) is a productivity tool of KSCE

Prev | Up | Next | Back | Forward
About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News

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

(blank)

   
       package Ada.Numerics is
          pragma Pure(Numerics);
          Argument_Error : exception;
          Pi : constant :=
                 3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511;
          e  : constant :=
                 2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996;
       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.


Subclauses

  1. Elementary Functions
  2. Random Number Generation
  3. Attributes of Floating Point Types
  4. Attributes of Fixed Point Types

About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News
Prev | Up | Next | Back | Forward


Copyright © 1994-1997 by Kempe Software Capital Enterprises. All Rights Reserved. For comments on this DocAda(tm) hypertext document, please write to KSCE, at docada@ksce.com