Sun Studio 12: Fortran Programming Guide

6.6 Interval Arithmetic

Note: Interval arithmetic is only available on SPARC platforms, currently.

The Fortran 95 compiler f95 supports intervals as an intrinsic data type. An interval is the closed compact set: [a, b] ={z | a≤ zb} defined by a pair of numbers, ab. Intervals can be used to:

By introducing intervals as an intrinsic data type to Fortran 95, all of the applicable syntax and semantics of Fortran 95 become immediately available to the developer. Besides the INTERVAL data types, f95 includes the following interval extensions to Fortran 95:

The f95 command-line option -xinterval enables the interval arithmetic features of the compiler. See the Fortran User’s Guide.

For detailed information on interval arithmetic in Fortran 95, see the Fortran 95 Interval Arithmetic Programming Reference.