US20040215680A1 - Min and max operations for multiplication and/or division under the simple interval system - Google Patents

Min and max operations for multiplication and/or division under the simple interval system Download PDF

Info

Publication number
US20040215680A1
US20040215680A1 US10/850,078 US85007804A US2004215680A1 US 20040215680 A1 US20040215680 A1 US 20040215680A1 US 85007804 A US85007804 A US 85007804A US 2004215680 A1 US2004215680 A1 US 2004215680A1
Authority
US
United States
Prior art keywords
interval
floating
endpoint
point
point number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/850,078
Inventor
G. Walster
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US10/850,078 priority Critical patent/US20040215680A1/en
Publication of US20040215680A1 publication Critical patent/US20040215680A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49942Significance control
    • G06F7/49989Interval arithmetic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49905Exception handling
    • G06F7/4991Overflow or underflow

Definitions

  • the present invention relates to performing arithmetic operations on interval operands within a computer system. More specifically, the present invention relates to a method and an apparatus for performing minimum and maximum operations to facilitate interval multiplication and/or interval division operations in the “simple” interval system.
  • floating-point numbers contain no information about their accuracy. Most measured data values include some amount of error that arises from the measurement process itself. This error can often be quantified as an accuracy parameter, which can subsequently be used to determine the accuracy of a computation.
  • floating-point numbers are not designed to keep track of accuracy information, whether from input data measurement errors or machine rounding errors. Hence, it is not possible to determine the accuracy of a computation by merely examining the floating-point number that results from the computation.
  • Interval arithmetic has been developed to solve the above-described problems.
  • Interval arithmetic represents numbers as intervals specified by a first (left) endpoint and a second (right) endpoint.
  • the interval [a, b], where a ⁇ b, is a closed, bounded subset of the real numbers, R, which includes a and b as well as all real numbers between a and b.
  • Arithmetic operations on interval operands are defined so that interval results always contain the entire set of possible values.
  • the result is a mathematical system for rigorously bounding numerical errors from all sources, including measurement data errors, machine rounding errors and their interactions.
  • the first endpoint normally contains the “infimum”, which is the largest number that is less than or equal to each of a given set of real numbers.
  • the second endpoint normally contains the “supremum”, which is the smallest number that is greater than or equal to each of the given set of real numbers.
  • One embodiment of the present invention provides a system for performing a minimum computation for an interval multiplication operation.
  • This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number.
  • the system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the system sets the minimum to negative infinity.
  • the minimum is a left endpoint of a resulting interval from the interval multiplication operation.
  • the first floating-point number is the result of a multiplication operation between the left endpoint of a first interval and the left endpoint of a second interval
  • the second floating-point number is the result of a multiplication operation between the left endpoint of the first interval and the right endpoint of the second interval
  • the third floating-point number is the result of a multiplication operation between the right endpoint of the first interval and the left endpoint of the second interval
  • the fourth floating-point number is the result of a multiplication operation between the right endpoint of the first interval and the right endpoint of the second interval.
  • computing the minimum involves setting the minimum to a value representing the empty interval, if any of the four floating-point numbers contain the value representing the empty interval.
  • the value representing the empty interval is a non-default NaN value.
  • computing the minimum involves selecting the minimum of the four floating-point numbers.
  • One embodiment of the present invention provides a system for performing a maximum computation for an interval multiplication operation, comprising.
  • This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number.
  • the system then computes a maximum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the system sets the maximum to positive infinity.
  • the maximum is a right endpoint of a resulting interval from the interval multiplication operation.
  • computing the maximum involves setting the maximum to a value representing the empty interval, if any of the four floating-point numbers contain the value representing the empty interval.
  • computing the maximum involves selecting the maximum of the four floating-point numbers.
  • One embodiment of the present invention provides a system for performing a minimum computation for an interval division operation.
  • This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number.
  • the system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum.
  • the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
  • the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
  • the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval;
  • the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
  • computing the minimum involves setting the minimum to negative infinity, if the second interval contains zero.
  • One embodiment of the present invention provides a system for performing a maximum computation for an interval division operation.
  • This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number.
  • the system then computes a maximum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the maximum.
  • computing the maximum involves setting the maximum to positive infinity, if the second interval contains zero.
  • FIG. 1 illustrates a computer system in accordance with an embodiment of the present invention.
  • FIG. 2 illustrates the process of compiling and using code for interval computations in accordance with an embodiment of the present invention.
  • FIG. 3 illustrates an arithmetic unit for interval computations in accordance with an embodiment of the present invention.
  • FIG. 4 is a flow chart illustrating the process of performing an interval computation in accordance with an embodiment of the present invention.
  • FIG. 5 illustrates four different interval operations in accordance with an embodiment of the present invention.
  • FIG. 6 illustrates the “Full” system for representing intervals using two floating-point numbers in accordance with an embodiment of the present invention.
  • Table 1A lists the possible arguments to the minimum and maximum operations and corresponding results for an interval multiplication operation in accordance with an embodiment of the present invention.
  • Table 1B lists the possible arguments to the minimum and maximum operations and corresponding results for an interval division operation in accordance with an embodiment of the present invention.
  • Table 2A illustrates the steps involved in performing a minimum operation for an interval multiplication operation in accordance with an embodiment of the present invention.
  • Table 2B illustrates the steps involved in performing a minimum operation for an interval division operation in accordance with an embodiment of the present invention.
  • a computer readable storage medium which may be any device or medium that can store code and/or data for use by a computer system.
  • the transmission medium may include a communications network, such as the Internet.
  • FIG. 1 illustrates a computer system 100 in accordance with an embodiment of the present invention.
  • computer system 100 includes processor 102 , which is coupled to a memory 112 and a peripheral bus 110 through bridge 106 .
  • Bridge 106 can generally include any type of circuitry for coupling components of computer system 100 together.
  • Processor 102 can include any type of processor, including, but not limited to, a microprocessor, a mainframe computer, a digital signal processor, a personal organizer, a device controller and a computational engine within an appliance.
  • Processor 102 includes an arithmetic unit 104 , which is capable of performing computational operations using floating-point numbers.
  • Storage device 108 can include any type of non-volatile storage device that can be coupled to a computer system. This includes, but is not limited to, magnetic, optical, and magneto-optical storage devices, as well as storage devices based on flash memory and/or battery-backed up memory.
  • Processor 102 communicates with memory 112 through bridge 106 .
  • Memory 112 can include any type of memory that can store code and data for execution by processor 102 .
  • memory 112 contains computational code for intervals 114 .
  • Computational code 114 contains instructions for the interval operations to be performed on individual operands, or interval values 115 , which are also stored within memory 112 . This computational code 114 and these interval values 115 are described in more detail below with reference to FIGS. 2-5.
  • FIG. 2 illustrates the process of compiling and using code for interval computations in accordance with an embodiment of the present invention.
  • the system starts with source code 202 , which specifies a number of computational operations involving intervals.
  • Source code 202 passes through compiler 204 , which converts source code 202 into executable code form 206 for interval computations.
  • Processor 102 retrieves executable code 206 and uses it to control the operation of arithmetic unit 104 .
  • Processor 102 also retrieves interval values 115 from memory 112 and passes these interval values 115 through arithmetic unit 104 to produce results 212 .
  • Results 212 can also include interval values.
  • FIG. 3 illustrates arithmetic unit 104 for interval computations in more detail accordance with an embodiment of the present invention. Details regarding the construction of such an arithmetic unit are well known in the art. For example, see U.S. Pat. Nos. 5,687,106 and 6,044,454, which are hereby incorporated by reference in order to provide details on the construction of such an arithmetic unit. Arithmetic unit 104 receives intervals 302 and 312 as inputs and produces interval 322 as an output.
  • interval 302 includes a first floating-point number 304 representing a first endpoint of interval 302 , and a second floating-point number 306 representing a second endpoint of interval 302 .
  • interval 312 includes a first floating-point number 314 representing a first endpoint of interval 312 , and a second floating-point number 316 representing a second endpoint of interval 312 .
  • the resulting interval 322 includes a first floating-point number 324 representing a first endpoint of interval 322 , and a second floating-point number 326 representing a second endpoint of interval 322 .
  • arithmetic unit 104 includes circuitry for performing the interval operations that are outlined in FIG. 5. This circuitry enables the interval operations to be performed efficiently.
  • compiler 204 converts interval operations into a executable code that can be executed using standard computational hardware that is not specially designed for interval operations.
  • FIG. 4 is a flow chart illustrating the process of performing an interval computation in accordance with an embodiment of the present invention.
  • the system starts by receiving a representation of an interval, such as first floating-point number 304 and second floating-point number 306 (step 402 ).
  • the system performs an arithmetic operation using the representation of the interval to produce a result (step 404 ).
  • the possibilities for this arithmetic operation are described in more detail below with reference to FIG. 5.
  • FIG. 5 illustrates four different interval operations in accordance with an embodiment of the present invention. These interval operations operate on the intervals X and Y.
  • the interval X includes two endpoints,
  • x denotes the lower bound of X
  • ⁇ overscore (x) ⁇ denotes the upper bound of X.
  • the interval X is a closed subset of the extended (including ⁇ and + ⁇ ) real numbers R* (see line 1 of FIG. 5).
  • the interval Y also has two endpoints and is a closed subset of the extended real numbers R* (see line 2 of FIG. 5).
  • the set of extended real numbers, R* is the set of real numbers, R, extended with the two ideal points negative infinity and positive infinity:
  • the up arrows and down arrows indicate the direction of rounding in the next and subsequent operations. Directed rounding (up or down) is applied if the result of a floating-point operation is not machine-representable.
  • the addition operation X+Y adds the left endpoint of X to the left endpoint of Y and rounds down to the nearest floating-point number to produce a resulting left endpoint, and adds the right endpoint of X to the right endpoint of Y and rounds up to the nearest floating-point number to produce a resulting right endpoint.
  • the subtraction operation X ⁇ Y subtracts the right endpoint of Y from the left endpoint of X and rounds down to produce a resulting left endpoint, and subtracts the left endpoint of Y from the right endpoint of X and rounds up to produce a resulting right endpoint.
  • the multiplication operation selects the minimum value of four different terms (rounded down) to produce the resulting left endpoint. These terms are: the left endpoint of X multiplied by the left endpoint of Y; the left endpoint of X multiplied by the right endpoint of Y; the right endpoint of X multiplied by the left endpoint of Y; and the right endpoint of X multiplied by the right endpoint of Y.
  • This multiplication operation additionally selects the maximum of the same four terms (rounded up) to produce the resulting right endpoint.
  • the division operation selects the minimum of four different terms (rounded down) to produce the resulting left endpoint. These terms are: the left endpoint of X divided by the left endpoint of Y; the left endpoint of X divided by the right endpoint of Y; the right endpoint of X divided by the left endpoint of Y; and the right endpoint of X divided by the right endpoint of Y.
  • This division operation additionally selects the maximum of the same four terms (rounded up) to produce the resulting right endpoint.
  • X/Y is an exterior interval that is nevertheless contained in the interval R*.
  • FIG. 6 illustrates a scheme for representing intervals in accordance with an embodiment of the present invention.
  • the below-described scheme for representing intervals can use two floating-point numbers that adhere to the floating-point number format specified in the IEEE standard 754 for binary floating-point arithmetic. In this way, existing floating-point hardware and software can be used.
  • the present invention can generally be applied to any floating-point representation, and is not limited to IEEE standard 754.
  • the empty interval is represented by [NaN ⁇ , NaN ⁇ ], wherein NaN ⁇ is a non-default not-a-number (NaN).
  • IEEE standard 754 specifies a special exponent value to represent a NaN.
  • a default NaN value can be generated as the result of an undefined operation, such as dividing by zero, an underflow or an overflow. By varying the mantissa of the NaN, the NaN value can be customized to be a non-default value.
  • [ a,b] ⁇ [c,d ] [min( ⁇ ac,ad,bc,bd ), max( ⁇ ac,ad,bc,bd )].
  • one embodiment of the present invention uses internal representations that allow existing IEEE instructions to be used to produce all the desired results, including the propagation of empty and entire intervals.
  • the empty interval originates only when explicitly set by interval functions or operators. Once set, ⁇ propagates.
  • default NaN can arise in a variety of ways, including operator-operand combinations, such as IEEE 754 ⁇ 0 ⁇ inf. By choosing the non-default “NaN ⁇ ” to represent endpoints of ⁇ , control is maintained over the occurrence of “NaN ⁇ ”. Because default NaN is temporarily used only in “min-max” algorithms, any saved default “NaN” must be the result of an interval implementation error or a point operation. This fact can be used to implement a validity test.
  • Table 1A contains all the possibilities for multiplication under the simple interval system, and Table 1B contains all of the possibilities for division.
  • a blank input cell means that this input value is neither NaN ⁇ nor NaN.
  • the last two columns are the returned minimum and maximum results, respectively.
  • Table 1A contains all the possibilities for multiplication under the simple interval system, and Table 1B contains all of the possibilities for division.
  • a blank input cell means that this input value is neither NaN ⁇ nor NaN.
  • the last two columns are the returned minimum and maximum results, respectively.
  • Table 2A (above) contains the min algorithm for multiplication under the simple system.
  • the max algorithm is exactly the same as the min algorithm except: (1) min is replaced by max everywhere in the algorithm; and (2) the sign of ⁇ inf is reversed to +inf in cases 2-12.
  • Table 2B contains the min algorithm for division under the simple system.
  • the max algorithm is exactly the same as the min algorithm except: (1) min is replaced by max everywhere in the algorithm; and (2) each instance of fp_max is replaced by fp_min.

Abstract

One embodiment of the present invention provides a system for performing a minimum computation for an interval multiplication operation. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the system sets the minimum to negative infinity. One embodiment of the present invention provides a system for performing a minimum computation for an interval division operation. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum.

Description

    RELATED APPLICATION
  • The subject matter of this application is related to the subject matter in a pending non-provisional application by the same inventor as the instant application and filed on 26 Mar. 2001, entitled, “Minimum and Maximum Operations to Facilitate Interval Multiplication and/or Interval Division,” Ser. No. 09/818,021 (Attorney Docket No. SUN-P5608-SPL).[0001]
  • BACKGROUND
  • 1. Field of the Invention [0002]
  • The present invention relates to performing arithmetic operations on interval operands within a computer system. More specifically, the present invention relates to a method and an apparatus for performing minimum and maximum operations to facilitate interval multiplication and/or interval division operations in the “simple” interval system. [0003]
  • 2. Related Art [0004]
  • Rapid advances in computing technology make it possible to perform trillions of computational operations each second. This tremendous computational speed makes it practical to perform computationally intensive tasks as diverse as predicting the weather and optimizing the design of an aircraft engine. Such computational tasks are typically performed using machine-representable floating-point numbers to approximate values of real numbers. (For example, see the Institute of Electrical and Electronics Engineers (IEEE) standard 754 for binary floating-point numbers.) [0005]
  • In spite of their limitations, floating-point numbers are generally used to perform most computational tasks. [0006]
  • One limitation is that machine-representable floating-point numbers have a fixed-size word length, which limits their accuracy. Note that a floating-point number is typically encoded using a 32, 64 or 128-bit binary number, which means that there are only 2[0007] 32, 264 or 2128 possible symbols that can be used to specify a floating-point number. Hence, most real number values can only be approximated with a corresponding floating-point number. This creates estimation errors that can be magnified through even a few computations, thereby adversely affecting the accuracy of a computation.
  • A related limitation is that floating-point numbers contain no information about their accuracy. Most measured data values include some amount of error that arises from the measurement process itself. This error can often be quantified as an accuracy parameter, which can subsequently be used to determine the accuracy of a computation. However, floating-point numbers are not designed to keep track of accuracy information, whether from input data measurement errors or machine rounding errors. Hence, it is not possible to determine the accuracy of a computation by merely examining the floating-point number that results from the computation. [0008]
  • Interval arithmetic has been developed to solve the above-described problems. Interval arithmetic represents numbers as intervals specified by a first (left) endpoint and a second (right) endpoint. For example, the interval [a, b], where a<b, is a closed, bounded subset of the real numbers, R, which includes a and b as well as all real numbers between a and b. Arithmetic operations on interval operands (interval arithmetic) are defined so that interval results always contain the entire set of possible values. The result is a mathematical system for rigorously bounding numerical errors from all sources, including measurement data errors, machine rounding errors and their interactions. (Note that the first endpoint normally contains the “infimum”, which is the largest number that is less than or equal to each of a given set of real numbers. Similarly, the second endpoint normally contains the “supremum”, which is the smallest number that is greater than or equal to each of the given set of real numbers.) [0009]
  • However, computer systems are presently not designed to efficiently handle intervals and interval computations. Consequently, performing interval operations on a typical computer system can be hundreds of times slower than performing conventional floating-point operations. In addition, without a special representation for intervals, interval arithmetic operations fail to produce results that are as narrow as possible. [0010]
  • What is needed is a method and an apparatus for efficiently performing arithmetic operations on intervals with results that are as narrow as possible. (Interval results that are as narrow as possible are said to be “sharp”.) [0011]
  • One performance problem occurs during minimum and maximum computations for interval multiplication and interval division operations. For example, the result of multiplying two intervals, [a,b]×[c,d]=[min(ac,ac,bc,bd), max(ac,ad,bc,bd)] (with appropriate rounding). [0012]
  • During these minimum and maximum computations, many special cases arise. For example, the minimum and maximum computations must deal with special cases for empty intervals, underflow conditions and overflow conditions. [0013]
  • These special cases are presently handled through computer code that includes numerous “if” statements to detect the special cases. Unfortunately, this code for dealing with special cases can occupy a large amount of memory. This makes it impractical to insert the code for the minimum and maximum operations “inline”—as opposed to calling a function to perform the min-max operation. Moreover, executing the code for dealing with special cases can be time-consuming, thereby degrading computational performance. [0014]
  • What is needed is a method and apparatus for efficiently performing minimum and maximum operations for interval multiplication and/or interval division operations. [0015]
  • SUMMARY
  • One embodiment of the present invention provides a system for performing a minimum computation for an interval multiplication operation. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the system sets the minimum to negative infinity. [0016]
  • In one embodiment of the present invention, the minimum is a left endpoint of a resulting interval from the interval multiplication operation. In this embodiment: the first floating-point number is the result of a multiplication operation between the left endpoint of a first interval and the left endpoint of a second interval; the second floating-point number is the result of a multiplication operation between the left endpoint of the first interval and the right endpoint of the second interval; the third floating-point number is the result of a multiplication operation between the right endpoint of the first interval and the left endpoint of the second interval; and the fourth floating-point number is the result of a multiplication operation between the right endpoint of the first interval and the right endpoint of the second interval. [0017]
  • In one embodiment of the present invention, computing the minimum involves setting the minimum to a value representing the empty interval, if any of the four floating-point numbers contain the value representing the empty interval. In a variation on this embodiment, the value representing the empty interval is a non-default NaN value. [0018]
  • In one embodiment of the present invention, if none of the four floating-point numbers is a default NaN value or a value representing the empty interval, computing the minimum involves selecting the minimum of the four floating-point numbers. [0019]
  • One embodiment of the present invention provides a system for performing a maximum computation for an interval multiplication operation, comprising. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a maximum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the system sets the maximum to positive infinity. [0020]
  • In one embodiment of the present invention, the maximum is a right endpoint of a resulting interval from the interval multiplication operation. [0021]
  • In one embodiment of the present invention, computing the maximum involves setting the maximum to a value representing the empty interval, if any of the four floating-point numbers contain the value representing the empty interval. [0022]
  • In one embodiment of the present invention, if none of the four floating-point numbers is a default NaN value or a value representing the empty interval, computing the maximum involves selecting the maximum of the four floating-point numbers. [0023]
  • One embodiment of the present invention provides a system for performing a minimum computation for an interval division operation. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a minimum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum. [0024]
  • In one embodiment of the present invention, the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval; the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval; the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval. [0025]
  • In one embodiment of the present invention, computing the minimum involves setting the minimum to negative infinity, if the second interval contains zero. [0026]
  • One embodiment of the present invention provides a system for performing a maximum computation for an interval division operation. This system receives four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number. The system then computes a maximum of the four floating-point numbers, wherein if the four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the maximum. [0027]
  • In one embodiment of the present invention, computing the maximum involves setting the maximum to positive infinity, if the second interval contains zero.[0028]
  • BRIEF DESCRIPTION OF THE FIGURES
  • FIG. 1 illustrates a computer system in accordance with an embodiment of the present invention. [0029]
  • FIG. 2 illustrates the process of compiling and using code for interval computations in accordance with an embodiment of the present invention. [0030]
  • FIG. 3 illustrates an arithmetic unit for interval computations in accordance with an embodiment of the present invention. [0031]
  • FIG. 4 is a flow chart illustrating the process of performing an interval computation in accordance with an embodiment of the present invention. [0032]
  • FIG. 5 illustrates four different interval operations in accordance with an embodiment of the present invention. [0033]
  • FIG. 6 illustrates the “Full” system for representing intervals using two floating-point numbers in accordance with an embodiment of the present invention.[0034]
  • Table 1A lists the possible arguments to the minimum and maximum operations and corresponding results for an interval multiplication operation in accordance with an embodiment of the present invention. [0035]
  • Table 1B lists the possible arguments to the minimum and maximum operations and corresponding results for an interval division operation in accordance with an embodiment of the present invention. [0036]
  • Table 2A illustrates the steps involved in performing a minimum operation for an interval multiplication operation in accordance with an embodiment of the present invention. [0037]
  • Table 2B illustrates the steps involved in performing a minimum operation for an interval division operation in accordance with an embodiment of the present invention. [0038]
  • DETAILED DESCRIPTION
  • The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. [0039]
  • The data structures and code described in this detailed description are typically stored on a computer readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. This includes, but is not limited to, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs) and DVDs (digital versatile discs or digital video discs), and computer instruction signals embodied in a transmission medium (with or without a carrier wave upon which the signals are modulated). For example, the transmission medium may include a communications network, such as the Internet. [0040]
  • Computer System [0041]
  • FIG. 1 illustrates a [0042] computer system 100 in accordance with an embodiment of the present invention. As illustrated in FIG. 1, computer system 100 includes processor 102, which is coupled to a memory 112 and a peripheral bus 110 through bridge 106. Bridge 106 can generally include any type of circuitry for coupling components of computer system 100 together.
  • [0043] Processor 102 can include any type of processor, including, but not limited to, a microprocessor, a mainframe computer, a digital signal processor, a personal organizer, a device controller and a computational engine within an appliance. Processor 102 includes an arithmetic unit 104, which is capable of performing computational operations using floating-point numbers.
  • [0044] Processor 102 communicates with storage device 108 through bridge 106 and peripheral bus 110. Storage device 108 can include any type of non-volatile storage device that can be coupled to a computer system. This includes, but is not limited to, magnetic, optical, and magneto-optical storage devices, as well as storage devices based on flash memory and/or battery-backed up memory.
  • [0045] Processor 102 communicates with memory 112 through bridge 106. Memory 112 can include any type of memory that can store code and data for execution by processor 102. As illustrated in FIG. 1, memory 112 contains computational code for intervals 114. Computational code 114 contains instructions for the interval operations to be performed on individual operands, or interval values 115, which are also stored within memory 112. This computational code 114 and these interval values 115 are described in more detail below with reference to FIGS. 2-5.
  • Note that although the present invention is described in the context of [0046] computer system 100 illustrated in FIG. 1, the present invention can generally operate on any type of computing device that can perform computations involving floating-point numbers. Hence, the present invention is not limited to the computer system 100 illustrated in FIG. 1.
  • Compiling and Using Interval Code [0047]
  • FIG. 2 illustrates the process of compiling and using code for interval computations in accordance with an embodiment of the present invention. The system starts with [0048] source code 202, which specifies a number of computational operations involving intervals. Source code 202 passes through compiler 204, which converts source code 202 into executable code form 206 for interval computations. Processor 102 retrieves executable code 206 and uses it to control the operation of arithmetic unit 104.
  • [0049] Processor 102 also retrieves interval values 115 from memory 112 and passes these interval values 115 through arithmetic unit 104 to produce results 212. Results 212 can also include interval values.
  • Note that the term “compilation” as used in this specification is to be construed broadly to include pre-compilation and just-in-time compilation, as well as use of an interpreter that interprets instructions at run-time. Hence, the term “compiler” as used in the specification and the claims refers to pre-compilers, just-in-time compilers and interpreters. [0050]
  • Arithmetic Unit for Intervals [0051]
  • FIG. 3 illustrates arithmetic unit [0052] 104 for interval computations in more detail accordance with an embodiment of the present invention. Details regarding the construction of such an arithmetic unit are well known in the art. For example, see U.S. Pat. Nos. 5,687,106 and 6,044,454, which are hereby incorporated by reference in order to provide details on the construction of such an arithmetic unit. Arithmetic unit 104 receives intervals 302 and 312 as inputs and produces interval 322 as an output.
  • In the embodiment illustrated in FIG. 3, [0053] interval 302 includes a first floating-point number 304 representing a first endpoint of interval 302, and a second floating-point number 306 representing a second endpoint of interval 302. Similarly, interval 312 includes a first floating-point number 314 representing a first endpoint of interval 312, and a second floating-point number 316 representing a second endpoint of interval 312. Also, the resulting interval 322 includes a first floating-point number 324 representing a first endpoint of interval 322, and a second floating-point number 326 representing a second endpoint of interval 322.
  • Note that arithmetic unit [0054] 104 includes circuitry for performing the interval operations that are outlined in FIG. 5. This circuitry enables the interval operations to be performed efficiently.
  • However, note that the present invention can also be applied to computing devices that do not include special-purpose hardware for performing interval operations. In such computing devices, [0055] compiler 204 converts interval operations into a executable code that can be executed using standard computational hardware that is not specially designed for interval operations.
  • FIG. 4 is a flow chart illustrating the process of performing an interval computation in accordance with an embodiment of the present invention. The system starts by receiving a representation of an interval, such as first floating-[0056] point number 304 and second floating-point number 306 (step 402). Next, the system performs an arithmetic operation using the representation of the interval to produce a result (step 404). The possibilities for this arithmetic operation are described in more detail below with reference to FIG. 5.
  • Interval Operations [0057]
  • FIG. 5 illustrates four different interval operations in accordance with an embodiment of the present invention. These interval operations operate on the intervals X and Y. The interval X includes two endpoints, [0058]
  • [0059] x denotes the lower bound of X, and
  • {overscore (x)} denotes the upper bound of X. [0060]
  • The interval X is a closed subset of the extended (including −∞ and +∞) real numbers R* (see [0061] line 1 of FIG. 5). Similarly the interval Y also has two endpoints and is a closed subset of the extended real numbers R* (see line 2 of FIG. 5).
  • Note that an interval is a point or degenerate interval if X=[x, x]. Also note that the left endpoint of an interior interval is always less than or equal to the right endpoint. The set of extended real numbers, R* is the set of real numbers, R, extended with the two ideal points negative infinity and positive infinity:[0062]
  • R*=R∪{−∞}∪{+∞}.
  • In the equations that appear in FIG. 5, the up arrows and down arrows indicate the direction of rounding in the next and subsequent operations. Directed rounding (up or down) is applied if the result of a floating-point operation is not machine-representable. [0063]
  • The addition operation X+Y adds the left endpoint of X to the left endpoint of Y and rounds down to the nearest floating-point number to produce a resulting left endpoint, and adds the right endpoint of X to the right endpoint of Y and rounds up to the nearest floating-point number to produce a resulting right endpoint. [0064]
  • Similarly, the subtraction operation X−Y subtracts the right endpoint of Y from the left endpoint of X and rounds down to produce a resulting left endpoint, and subtracts the left endpoint of Y from the right endpoint of X and rounds up to produce a resulting right endpoint. [0065]
  • The multiplication operation selects the minimum value of four different terms (rounded down) to produce the resulting left endpoint. These terms are: the left endpoint of X multiplied by the left endpoint of Y; the left endpoint of X multiplied by the right endpoint of Y; the right endpoint of X multiplied by the left endpoint of Y; and the right endpoint of X multiplied by the right endpoint of Y. This multiplication operation additionally selects the maximum of the same four terms (rounded up) to produce the resulting right endpoint. [0066]
  • Similarly, the division operation selects the minimum of four different terms (rounded down) to produce the resulting left endpoint. These terms are: the left endpoint of X divided by the left endpoint of Y; the left endpoint of X divided by the right endpoint of Y; the right endpoint of X divided by the left endpoint of Y; and the right endpoint of X divided by the right endpoint of Y. This division operation additionally selects the maximum of the same four terms (rounded up) to produce the resulting right endpoint. For the special case where the interval Y includes zero, X/Y is an exterior interval that is nevertheless contained in the interval R*. [0067]
  • Note that the result of any of these interval operations is the empty interval if either of the intervals, X or Y, are the empty interval. Also note, that in one embodiment of the present invention, extended interval operations never cause undefined outcomes, which are referred to as “exceptions” in the IEEE 754 standard. [0068]
  • Representing Intervals [0069]
  • FIG. 6 illustrates a scheme for representing intervals in accordance with an embodiment of the present invention. Note that the below-described scheme for representing intervals can use two floating-point numbers that adhere to the floating-point number format specified in the IEEE standard 754 for binary floating-point arithmetic. In this way, existing floating-point hardware and software can be used. However, note that the present invention can generally be applied to any floating-point representation, and is not limited to IEEE standard 754. [0070]
  • Also note that no additional data are required to represent infinite or empty intervals. Hence, the below-described scheme minimizes the memory storage requirements for intervals, and thereby improves cache performance and data throughput. These improvements can greatly improve computational efficiency. [0071]
  • (1) Referring the FIG. 6, the empty interval is represented by [NaN[0072] Ø, NaNØ], wherein NaNØ is a non-default not-a-number (NaN). Note that IEEE standard 754 specifies a special exponent value to represent a NaN. Note that a default NaN value can be generated as the result of an undefined operation, such as dividing by zero, an underflow or an overflow. By varying the mantissa of the NaN, the NaN value can be customized to be a non-default value.
  • (2) Next, the interval [−∞, +∞] can be represented by [−inf, +inf]. Note that IEEE standard 754 also specifies a representation for both positive infinity (+inf) and negative infinity (−inf). [0073]
  • (3) Next, for two real machine-representable numbers a and b with −fp_max≦a≦−fp_min, or +fp_min≦a≦+fp_max and similarly for b, and where a<b, the interval [a, b] is represented by [A, B], where A and B are floating-point representations of the finite numbers a and b. [0074]
  • (4) Next is the case of [a, 0] where −fp_max≦a≦−fp_min (−fp_min is the closest negative floating-point number to zero). This is represented by [A, ±0]. Note that IEEE standard 754 specifies a representation for positive zero (+0) as well as negative zero (−0). In the simple system, this distinction is not used. [0075]
  • (5) Next, the interval [0, 0] is represented by [±0, ±0]. [0076]
  • (6) Next is the case of [0, b], where +fp_min≦b≦+fp_max. This is represented by [±0, B]. [0077]
  • (7) Next is the case of [−∞, b], where −fp_max≦b≦+fp_max. This is represented by [−inf B]. [0078]
  • (8) Next is the case of [a, +∞], where −fp_max≦a≦+fp_max. This is represented by [A, +inf]. [0079]
  • Minimum and Maximum Computations [0080]
  • The min-max algorithm for finite interval multiplication is:[0081]
  • [a,b]×[c,d]=[min(⇓ac,ad,bc,bd), max(↑ac,ad,bc,bd)].
  • Note that one embodiment of the present invention uses internal representations that allow existing IEEE instructions to be used to produce all the desired results, including the propagation of empty and entire intervals. [0082]
  • The empty interval, “Ø”, and entire interval, “R*”, propagate in exactly the same way, except with respect to each other, in which case the empty interval dominates. Choosing “[NAN[0083] Ø, NaNØ]” to represent Ø and “[−inf,+inf]” to represent R* facilitates their propagation and interaction. In particular, Ø×X=Ø results naturally from:
  • [NAN Ø ,NaN Ø ]×X=[NAN Ø ,NaN Ø]
  • where X is any interval, including “[−inf,+inf]”, representing R*. [0084]
  • The empty interval originates only when explicitly set by interval functions or operators. Once set, Ø propagates. On the other hand, default NaN can arise in a variety of ways, including operator-operand combinations, such as IEEE 754±0×±inf. By choosing the non-default “NaN[0085] Ø” to represent endpoints of Ø, control is maintained over the occurrence of “NaNØ”. Because default NaN is temporarily used only in “min-max” algorithms, any saved default “NaN” must be the result of an interval implementation error or a point operation. This fact can be used to implement a validity test.
  • In one embodiment of the present invention, default NaNs can only arise in one different context, but it must be distinguished from NaN[0086] Ø. R* propagation is represented by:
  • [−0,+0]×[−inf,+inf]=[−inf,+inf].
  • Given the R* propagation context, all four intermediate scalar products are default NaN. When the context is 0 propagation, all four intermediate scalar products are NaN[0087] Ø.
  • Therefore, to separate these two contexts it is sufficient to employ modified min and max functions having the properties shown in Table 1A (for multiplication under the simple interval system) and Table 1B (for division under the simple interval system) below. [0088]
    TABLE 1A
    [a,b] × [c,d]
    min(NaNø, NaNø, NaNø, NaNø) = NaNø
    max(NaNø, NaNø, NaNø, NaNø) = NaNø
    min(NaN, NaN, NaN, NaN) = −inf
    max(NaN, NaN, NaN, NaN) = +inf
    min(X, Y, NaN, NaN) = min(X,Y)
    max(X, Y, NaN, NaN) = max(X,Y)
    ac ad bc bd min max case
    min(ac,ad,bc,bd) max(ac,ad,bc,bd) 1
    NaN −inf +inf 2
    NaN −inf +inf 3
    NaN −inf +inf 4
    NaN −inf +inf 5
    NaN NaN −inf +inf 6
    NaN NaN −inf +inf 7
    NaN NaN −inf +inf 8
    NaN NaN −inf +inf 9
    NaN NaN −inf +inf 10
    NaN NaN −inf +inf 11
    NaN NaN NaN NaN −inf +inf 12
    NaNø NaNø NaNø NaNø NaNø NaNø 13
  • Table 1A contains all the possibilities for multiplication under the simple interval system, and Table 1B contains all of the possibilities for division. The first four columns are the four inputs, where ac, ad, bc, and bd represent the four inputs to the minimum or maximum operation, assuming X=[a,b], Y=[c,d] are being computed. A blank input cell means that this input value is neither NaN[0089] Ø nor NaN. The last two columns are the returned minimum and maximum results, respectively.
    TABLE 1B
    [a,b]/[c,d]
    ac ad bc bd min max case
    min(ac,ad,bc,bd) max(ac,ad,bc,bd) 1
    NaN min(ad,bc,bd) max(ad,bc,bd) 2
    NaN min(ac,bc,bd) max(ac,bc,bd) 3
    NaN min(ac,ad,bd) max(ac,ad,bd) 4
    NaN min(ac,ad,bc) max(ac,ad,bc) 5
    NaN NaN min(ad,bd) max(ad,bd) 7
    NaN NaN min(ac,bc) max(ac,bc) 10
    NaNø NaNø NaNø NaNø NaNø NaNø 13
  • Table 1A contains all the possibilities for multiplication under the simple interval system, and Table 1B contains all of the possibilities for division. The first four columns are the four inputs, where ac, ad, bc, and bd represent the four inputs to the minimum or maximum operation, assuming X=[a,b], Y=[c,d] are being computed. A blank input cell means that this input value is neither NaN[0090] Ø nor NaN. The last two columns are the returned minimum and maximum results, respectively.
  • Min and Max Instructions [0091]
  • To understand the methods to compute a minimum and a maximum, it is helpful to examine the possible arguments to the minimum and maximum operations. (See Table 2A for multiplication under the simple system and Table 2B for division under the simple system below.) Note that the variables ac, ad, bc and ad can be the result of individual operand multiplications or divisions depending on the operation being performed. [0092]
    TABLE 2A
    Input: ac,ad,bc,bd
    Output: “Simple”minimum for multiplication
    if ac==NaNø,
      return NaNø, {case 13}
    if ac==NaN or ad==NaN or bc==NaN or bd==NaN
      return −inf  {cases 2 through 12}
    endif
    return min(ac,ad,bc,bd)
    end
  • Table 2A (above) contains the min algorithm for multiplication under the simple system. The max algorithm is exactly the same as the min algorithm except: (1) min is replaced by max everywhere in the algorithm; and (2) the sign of −inf is reversed to +inf in cases 2-12. [0093]
  • Table 2B (below) contains the min algorithm for division under the simple system. The max algorithm is exactly the same as the min algorithm except: (1) min is replaced by max everywhere in the algorithm; and (2) each instance of fp_max is replaced by fp_min. [0094]
  • Note that the min-max version of division requires the addition of a test to check for divisors that contain zero, in which case R* is returned, provided the numerator is not empty. [0095]
  • Also, note that the methods outlined in Tables 2A and 2B are suitable for efficient implementation in hardware as well as in software. [0096]
  • The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. For example, in the method outlined in Table 2, the order of the input operands, a, b, c, and d, can be permuted to produce an equivalent min/max operation. The present invention covers all such permutations. [0097]
    TABLE 2B
    Input: ac=a/c, ad=a/d, bc=b/c, bd=b/d
    Output: “Simple” minimum for division
    if ac==NaNø
     return NaNø {case 13}
    if ac==NaN
     ac = fp_max {cases 2 & 7}
    endif
    if ad==NaN
     ad = fp_max {cases 3 & 10}
    endif
    if bc==NaN
     bc = fp_max {cases 4 & 7}
    endif
    if bd==NaN
     bd = fp_max {cases 5 & 10}
    endif
    return min(ac,ad,bc,bd)
    end
  • Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims. [0098]

Claims (39)

1-10 (Canceled).
11. A method for performing extremum computation for an interval division operation, comprising:
receiving at least four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number; and
computing a minimum of the at least four floating-point numbers, wherein computing the minimum includes computing the minimum in an arithmetic unit for intervals;
wherein if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum.
12. The method of claim 11,
wherein the minimum is a left endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
13. The method of claim 12, wherein computing the minimum involves setting the minimum to negative infinity, if the second interval contains zero.
14. The method of claim 11, wherein computing the minimum involves setting the minimum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
15. The method of claim 14, wherein the value representing the empty interval is a non-default NaN value.
16. The method of claim 11, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, computing the minimum involves selecting the minimum of the at least four floating-point numbers.
17. The method of claim 11, further comprising:
computing a maximum of the at least four floating-point numbers;
wherein if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the maximum.
18. The method of claim 17,
wherein the maximum is a right endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
19. The method of claim 18, wherein computing the maximum involves setting the maximum to positive infinity, if the second interval contains zero.
20. The method of claim 17, wherein computing the maximum involves setting the maximum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
21. The method of claim 20, wherein the value representing the empty interval is a non-default NaN value.
22. The method of claim 17, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, computing the maximum involves selecting the maximum of the at least four floating-point numbers.
23-32 (Canceled).
33. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for performing extremum computation for an interval division operation, the method comprising:
receiving at least four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number; and
computing a minimum of the at least four floating-point numbers;
wherein if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum.
34. The computer-readable storage medium of claim 33,
wherein the minimum is a left endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
35. The computer-readable storage medium of claim 34, wherein computing the minimum involves setting the minimum to negative infinity, if the second interval contains zero.
36. The computer-readable storage medium of claim 33, wherein computing the minimum involves setting the minimum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
37. The computer-readable storage medium of claim 36, wherein the value representing the empty interval is a non-default NaN value.
38. The computer-readable storage medium of claim 33, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, computing the minimum involves selecting the minimum of the at least four floating-point numbers.
39. The computer-readable storage medium of claim 33, the method further comprising:
computing a maximum of the at least four floating-point numbers;
wherein if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the maximum.
40. The computer-readable storage medium of claim 39,
wherein the maximum is a right endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
41. The computer-readable storage medium of claim 40, wherein computing the maximum involves setting the maximum to positive infinity, if the second interval contains zero.
42. The computer-readable storage medium of claim 39, wherein computing the maximum involves setting the maximum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
43. The computer-readable storage medium of claim 42, wherein the value representing the empty interval is a non-default NaN value.
44. The computer-readable storage medium of claim 39, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, computing the maximum involves selecting the maximum of the at least four floating-point numbers.
45-54 (Canceled).
55. An apparatus that performs extremum computation for an interval division operation, comprising:
an input that is configured to receive at least four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number; and
a computing mechanism that is configured to compute a minimum of the at least four floating-point numbers;
wherein if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the minimum.
56. The apparatus of claim 55,
wherein the minimum is a left endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
57. The apparatus of claim 56, wherein if the second interval contains zero, the computing mechanism is configured to set the minimum to negative infinity.
58. The apparatus of claim 55, wherein the computing mechanism is configured to set the minimum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
59. The apparatus of claim 58, wherein the value representing the empty interval is a non-default NaN value.
60. The apparatus of claim 55, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, the computing mechanism is configured to select the minimum of the at least four floating-point numbers.
61. The apparatus of claim 55 wherein:
the input is further configured to receive at least four floating-point numbers, including a first floating-point number, a second floating-point number, a third floating-point number and a fourth floating-point number;
the computing mechanism is further configured to compute a maximum of the at least four floating-point numbers; and
if the at least four floating-point numbers include one or more default NaN (not-a-number) values, the default NaN values are ignored in computing the maximum.
62. The apparatus of claim 61,
wherein the maximum is a right endpoint of a resulting interval from the interval division operation;
wherein the first floating-point number is the result of a division operation between the left endpoint of a first interval and the left endpoint of a second interval;
wherein the second floating-point number is the result of a division operation between the left endpoint of the first interval and the right endpoint of the second interval;
wherein the third floating-point number is the result of a division operation between the right endpoint of the first interval and the left endpoint of the second interval; and
wherein the fourth floating-point number is the result of a division operation between the right endpoint of the first interval and the right endpoint of the second interval.
63. The apparatus of claim 62, wherein if the second interval contains zero, the computing mechanism is configured to set the maximum to positive infinity.
64. The apparatus of claim 61, wherein the computing mechanism is configured to set the maximum to a value representing the empty interval, if any of the at least four floating-point numbers contain the value representing the empty interval.
65. The apparatus of claim 64, wherein the value representing the empty interval is a non-default NaN value.
66. The apparatus of claim 61, wherein if none of the at least four floating-point numbers is a default NaN value or a value representing the empty interval, the computing mechanism is configured to select the maximum of the at least four floating-point numbers.
US10/850,078 2001-05-11 2004-05-19 Min and max operations for multiplication and/or division under the simple interval system Abandoned US20040215680A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/850,078 US20040215680A1 (en) 2001-05-11 2004-05-19 Min and max operations for multiplication and/or division under the simple interval system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/854,096 US6751638B2 (en) 2001-05-11 2001-05-11 Min and max operations for multiplication and/or division under the simple interval system
US10/850,078 US20040215680A1 (en) 2001-05-11 2004-05-19 Min and max operations for multiplication and/or division under the simple interval system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/854,096 Division US6751638B2 (en) 2001-05-11 2001-05-11 Min and max operations for multiplication and/or division under the simple interval system

Publications (1)

Publication Number Publication Date
US20040215680A1 true US20040215680A1 (en) 2004-10-28

Family

ID=25317720

Family Applications (2)

Application Number Title Priority Date Filing Date
US09/854,096 Expired - Lifetime US6751638B2 (en) 2001-05-11 2001-05-11 Min and max operations for multiplication and/or division under the simple interval system
US10/850,078 Abandoned US20040215680A1 (en) 2001-05-11 2004-05-19 Min and max operations for multiplication and/or division under the simple interval system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/854,096 Expired - Lifetime US6751638B2 (en) 2001-05-11 2001-05-11 Min and max operations for multiplication and/or division under the simple interval system

Country Status (1)

Country Link
US (2) US6751638B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037086A1 (en) * 2001-08-17 2003-02-20 Walster G. William Method and apparatus for facilitating exception-free arithmetic in a computer system

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970898B2 (en) 2001-05-25 2005-11-29 Sun Microsystems, Inc. System and method for forcing floating point status information to selected values
US6976050B2 (en) 2001-05-25 2005-12-13 Sun Microsystems, Inc. System and method for extracting the high part of a floating point operand
US7133890B2 (en) * 2001-05-25 2006-11-07 Sun Microsystems, Inc. Total order comparator unit for comparing values of two floating point operands
US7430576B2 (en) * 2001-05-25 2008-09-30 Sun Microsystems, Inc. Floating point square root provider with embedded status information
US7016928B2 (en) * 2001-05-25 2006-03-21 Sun Microsystems, Inc. Floating point status information testing circuit
US7228324B2 (en) * 2001-05-25 2007-06-05 Sun Microsystems, Inc. Circuit for selectively providing maximum or minimum of a pair of floating point operands
US6961744B2 (en) * 2001-05-25 2005-11-01 Sun Microsystems, Inc. System and method for generating an integer part of a logarithm of a floating point operand
US7069288B2 (en) * 2001-05-25 2006-06-27 Sun Microsystems, Inc. Floating point system with improved support of interval arithmetic
US7831652B2 (en) * 2001-05-25 2010-11-09 Oracle America, Inc. Floating point multiplier with embedded status information
US7191202B2 (en) * 2001-05-25 2007-03-13 Sun Microsystems, Inc. Comparator unit for comparing values of floating point operands
US7395297B2 (en) 2001-05-25 2008-07-01 Sun Microsystems, Inc. Floating point system that represents status flag information within a floating point operand
US7003540B2 (en) * 2001-05-25 2006-02-21 Sun Microsystems, Inc. Floating point multiplier for delimited operands
US7444367B2 (en) 2001-05-25 2008-10-28 Sun Microsystems, Inc. Floating point status information accumulation circuit
US7069289B2 (en) * 2001-05-25 2006-06-27 Sun Microsystems, Inc. Floating point unit for detecting and representing inexact computations without flags or traps
US7363337B2 (en) * 2001-05-25 2008-04-22 Sun Microsystems, Inc. Floating point divider with embedded status information
US6993549B2 (en) * 2001-05-25 2006-01-31 Sun Microsystems, Inc. System and method for performing gloating point operations involving extended exponents
US7366749B2 (en) * 2001-05-25 2008-04-29 Sun Microsystems, Inc. Floating point adder with embedded status information
US7613762B2 (en) * 2001-05-25 2009-11-03 Sun Microsystems, Inc. Floating point remainder with embedded status information
JP2004005395A (en) * 2002-04-16 2004-01-08 Sony Computer Entertainment Inc Arithmetic processing unit and semiconductor device
US7236999B2 (en) * 2002-12-17 2007-06-26 Sun Microsystems, Inc. Methods and systems for computing the quotient of floating-point intervals
US7219117B2 (en) * 2002-12-17 2007-05-15 Sun Microsystems, Inc. Methods and systems for computing floating-point intervals
US7059511B2 (en) * 2004-03-15 2006-06-13 Honeywell International Inc. Adjustable force and position pre-load welding fixture
WO2007041561A2 (en) * 2005-10-03 2007-04-12 Sunfish Studio, Llc Representation of modal intervals within a computer
US9223544B2 (en) * 2012-09-07 2015-12-29 Intel Corporation Number representation and memory system for arithmetic

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5021986A (en) * 1988-12-28 1991-06-04 Nec Corporation Total sum calculation circuit capable of rapidly calculating a total sum of more than two input data represented by a floating point representation
US6038582A (en) * 1996-10-16 2000-03-14 Hitachi, Ltd. Data processor and data processing system
US6842764B2 (en) * 2001-03-26 2005-01-11 Sun Microsystems, Inc. Minimum and maximum operations to facilitate interval multiplication and/or interval division
US7095343B2 (en) * 2001-10-09 2006-08-22 Trustees Of Princeton University code compression algorithms and architectures for embedded systems

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748516A (en) * 1995-09-26 1998-05-05 Advanced Micro Devices, Inc. Floating point processing unit with forced arithmetic results
US5931943A (en) * 1997-10-21 1999-08-03 Advanced Micro Devices, Inc. Floating point NaN comparison
US6487575B1 (en) * 1998-08-31 2002-11-26 Advanced Micro Devices, Inc. Early completion of iterative division
US6374345B1 (en) * 1999-07-22 2002-04-16 Advanced Micro Devices, Inc. Apparatus and method for handling tiny numbers using a super sticky bit in a microprocessor
US6629120B1 (en) * 2000-11-09 2003-09-30 Sun Microsystems, Inc. Method and apparatus for performing a mask-driven interval multiplication operation
US20030023653A1 (en) * 2001-01-29 2003-01-30 Andrew Dunlop System, method and article of manufacture for a single-cycle floating point library
US7330864B2 (en) * 2001-03-01 2008-02-12 Microsoft Corporation System and method for using native floating point microprocessor instructions to manipulate 16-bit floating point data representations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5021986A (en) * 1988-12-28 1991-06-04 Nec Corporation Total sum calculation circuit capable of rapidly calculating a total sum of more than two input data represented by a floating point representation
US6038582A (en) * 1996-10-16 2000-03-14 Hitachi, Ltd. Data processor and data processing system
US6842764B2 (en) * 2001-03-26 2005-01-11 Sun Microsystems, Inc. Minimum and maximum operations to facilitate interval multiplication and/or interval division
US7095343B2 (en) * 2001-10-09 2006-08-22 Trustees Of Princeton University code compression algorithms and architectures for embedded systems

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037086A1 (en) * 2001-08-17 2003-02-20 Walster G. William Method and apparatus for facilitating exception-free arithmetic in a computer system
US7222146B2 (en) * 2001-08-17 2007-05-22 Sun Microsystems, Inc. Method and apparatus for facilitating exception-free arithmetic in a computer system

Also Published As

Publication number Publication date
US6751638B2 (en) 2004-06-15
US20030033335A1 (en) 2003-02-13

Similar Documents

Publication Publication Date Title
US6751638B2 (en) Min and max operations for multiplication and/or division under the simple interval system
US6842764B2 (en) Minimum and maximum operations to facilitate interval multiplication and/or interval division
US6658444B1 (en) Method and apparatus for performing a mask-driven interval division operation
US6658443B1 (en) Method and apparatus for representing arithmetic intervals within a computer system
US6629120B1 (en) Method and apparatus for performing a mask-driven interval multiplication operation
US10656913B2 (en) Enhanced low precision binary floating-point formatting
US7991811B2 (en) Method and system for optimizing floating point conversion between different bases
US6728953B1 (en) Selectively enabling expression folding during program compilation
US6779006B1 (en) Performing dependent subtraction on arithmetic intervals within a computer system
US6920472B2 (en) Termination criteria for the interval version of Newton&#39;s method for solving systems of non-linear equations
US6915320B2 (en) Termination criteria for the one-dimensional interval version of newton&#39;s method
US7610323B2 (en) Method and apparatus for initializing interval computations through subdomain sampling
US6915321B2 (en) Method and apparatus for solving systems of nonlinear equations using interval arithmetic
US11182127B2 (en) Binary floating-point multiply and scale operation for compute-intensive numerical applications and apparatuses
US6668268B1 (en) Method and apparatus for compiling dependent subtraction operations on arithmetic intervals
US20030195912A1 (en) Arithmetic processing unit and semiconductor device
US6823352B2 (en) Solving a nonlinear equation through interval arithmetic and term consistency
US6895422B2 (en) Method and apparatus for computing roots of a polynomial equation with interval coefficients
US6961743B2 (en) Method and apparatus for solving an equality constrained global optimization problem
US6976048B2 (en) Method and apparatus solving problems having interval parameters
US7062524B2 (en) Method and apparatus for solving an inequality constrained global optimization problem
US6993548B2 (en) Method and apparatus for bounding the solution set of a system of linear equations
US7222146B2 (en) Method and apparatus for facilitating exception-free arithmetic in a computer system
US7028065B2 (en) Applying term consistency to an inequality constrained interval global optimization problem
US7296047B1 (en) Method and apparatus for solving overdetermined systems of interval linear equations

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION