DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Ada.Numerics.Elementary_Functions

The Float instance of Generic_Elementary_Functions.

Read the family guide for representation, selection and resource rules. The complete declaration page retains exact signatures/contracts; the source specification is the implementation baseline.

Availability and ownership

Inherited operations are Sqrt, Exp, Log, Sin and Cos with the generic's contracts specialized to Float; no separate instantiation is needed.

A client proof uses these contracts without proving the body again (see library assurance). Global => null excludes package-global effects, not changes made through an in out argument.

Import and instantiate

with Ada.Numerics.Elementary_Functions;
import Ada.Numerics.Elementary_Functions;

A Vibe module imports this unit's names with from Ada.Numerics.Elementary_Functions import Name; see library use across syntaxes. In Varc, keep each name's declared spelling and write & on arguments the call changes.

Contract and lifecycle reading

A Pre condition is the caller's obligation; a Post is what a normal return guarantees. What a postcondition does not state, a client cannot assume. Ghost functions are for contracts and ghost code. The family guide describes copying, lifetime, order and cost.

API 001

Ada.Numerics.Elementary_Functions (declaration) — Existing Float instance of the five elementary-function operations; use the generic family's domains and result bounds.