Interval package: Difference between revisions

Jump to navigation Jump to search
33 bytes removed ,  21 January 2015
m
→‎Arithmetic operations: The fma no longer is slow
m (→‎Online Introductions: Warning text for INTLAB introduction)
m (→‎Arithmetic operations: The fma no longer is slow)
Line 256: Line 256:
Arithmetic functions in a set-based interval arithmetic follow these rules: Intervals are sets. They are subsets of the set of real numbers. The interval version of an elementary function such as sin(''x'') is essentially the natural extension to sets of the corresponding point-wise function on real numbers. That is, the function is evaluated for each number in the interval where the function is defined and the result must be an enclosure of all possible values that may occur.
Arithmetic functions in a set-based interval arithmetic follow these rules: Intervals are sets. They are subsets of the set of real numbers. The interval version of an elementary function such as sin(''x'') is essentially the natural extension to sets of the corresponding point-wise function on real numbers. That is, the function is evaluated for each number in the interval where the function is defined and the result must be an enclosure of all possible values that may occur.


One operation that should be noted is the <code>fma</code> function (fused multiply and add). It computes '''''x''''' × '''''y''''' + '''''z''''' in a single step and is much slower than multiplication followed by addition. However, it is more accurate and therefore preferred in some situations.
One operation that should be noted is the <code>fma</code> function (fused multiply and add). It computes '''''x''''' × '''''y''''' + '''''z''''' in a single step and is more accurate (because of no intermediate result) and therefore preferred in some situations.


  octave:1> sin (infsup (0.5))
  octave:1> sin (infsup (0.5))
240

edits

Navigation menu