| |||||||
| |||||||
![]() | |||||||
Prototype | |||||||
template <class Tnum> bool posgt(Tnum x, const interval<Tnum>& y) ; | |||||||
![]() | |||||||
Description | |||||||
Tests if the number x is
greater than a number in y . Returns true if x is
greater than the upper bound of 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.