lib/numeric
Provides numeric classes.
->See description

 

DOUBLE
 DOUBLE is the type for real numbers with more precision than 'REAL' type.
 The precision is not infinite.

 Note: An Eiffel DOUBLE is mapped as a C double or as a Java double.

INTEGER_16
 16 bits signed integer.

INTEGER_32
 32 bits signed integer.

INTEGER_64
 64 bits signed integer.

INTEGER_8
 8 bits signed integer.

INTEGER
 32 bits signed integer.

INTEGER_GENERAL
 General integer abstraction to share feature definition of INTEGER_8,
 INTEGER_16, INTEGER, INTEGER_32 and INTEGER_64.

 If you need integers with bigger values, use NUMBER or MUTABLE_BIG_INTEGER.

MATH_CONSTANTS
 Platform-independent, universal, mathematical constants.
 Intended to be used as ancestor for classes that need these constants.

MUTABLE_BIG_INTEGER
 A class used to represent multiprecision integers that makes efficient use
 of allocated space by allowing a number to occupy only part of an array so
 that the arrays do not have to be reallocated as often. When performing an
 operation with many iterations the array used to hold a number is only
 reallocated when necessary and does not have to be the same size as the
 number it represents. A mutable number allows calculations to occur on the
 same number without having to create a new number for every step of the
 calculation as it occurs with NUMBERs.

NUMBER
 This abstract definition of a NUMBER is intended to be the unique
 view of the client (do not use sub-classes names at all in the
 client code). In order to create NUMBERs without using concrete
 class name, the client code can inherit NUMBER_TOOLS. (See directory
 ${SmartEiffel}/tutorial/number for example.)

NUMBER_TOOLS
 This class provides abstract creation functions for NUMBERs as well as
 some other useful tools for NUMBERs.

 Because this class is expanded, one may simply declare some entity of
 type NUMBER_TOOLS to use those NUMBER tools. One may also inherit this
 class in order to use those tools as well.

NUMERIC
 This class describes a ring.

REAL
 REAL is the type for real numbers. You may consider DOUBLE type if you
 need more precision.

 Note: An Eiffel REAL is mapped as a C float or as a Java float.

REAL_GENERAL
 (This class is here to prepare the new support for REAL: REAL_32, REAL_64, etc.)
 Work in progress. Please, do not use it now. July 7th 2004


 

Cluster lib/numeric description

Provides numeric classes. There are three kinds of classes: