| |||||||
| |||||||
![]() | |||||||
Prototype | |||||||
template <class Tnum> bool poslte(const interval<Tnum>& x, const interval<Tnum>& y) ; | |||||||
![]() | |||||||
Description | |||||||
Tests if there could be a number in x which is
less than or equal to a number in y . returns true
unless the lower bound of x is greater than or equal to y
| |||||||
![]() | |||||||
Definition | |||||||
interval.cct | |||||||
![]() | |||||||
Preconditions | |||||||
| |||||||
![]() | |||||||
Complexity | |||||||
![]() | |||||||
Example | |||||||
In possibly.cc:
A = Interval(1.1,3.3); B = Interval(2.2,4.4); cout << poslte(A,B) << endl; cout << posgt(A,B) << endl; cout << poslt(A,B) << endl; A = Interval(4.5,6.0); B = Interval(2.2,4.4); cout << poslte(A,B) << endl; cout << poslt(A,B) << endl; A = Interval(1.1,2.0); B = Interval(2.2,4.4); cout << posgt(A,B) << endl; cout << posgte(A,B) << endl; | |||||||
![]() | |||||||
Notes | |||||||
![]() | |||||||
See also | |||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.