operator / [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:intervals,operator Component type:function
Prototype
template <class Tnum>
interval<Tnum> operator / (const interval<Tnum>& x, const interval<Tnum>& y) ;
Description
Divides an interval x by another interval y returning the quotient as an outward rounded interval. Uses the algorithm from Moore's book "Methods and Applications of Interval analysis" p12 x = [a,b] ; y = [c,d]
x/y =
[b/c,a/d] if a>0 c>0 b>0
[b/d,a/d] if a>0 c>0 b<=0
[a/c,b/d] if a>0 c<=0 b<0
[a/c,b/c] if a>0 c<=0 b>=0
[b/d,a/c] if a<=0 c>0
[a/d,b/c] if a<=0 c<=0
Returns a proper interval in all cases.
Definition
interval.cct
Preconditions
Complexity
Example
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.