--  Projectiles in floating point (RM 3.5.7, A.5.1): the elementary functions and the
--  rounding attributes.
package Motion is
   G : constant Float := 9.81;

   subtype Speed is Float range 0.0 .. 1000.0;
   subtype Angle is Float range 0.0 .. 1.6;

   function Flight_Range (V : Speed; A : Angle) return Float;

   function Height (V : Speed) return Float
     with Post => Height'Result >= 0.0;

   function Hypotenuse (X, Y : Float) return Float
     with Pre => X in -1.0E6 .. 1.0E6 and Y in -1.0E6 .. 1.0E6,
          Post => Hypotenuse'Result >= 0.0;
end Motion;
