| |||||||
| |||||||
| Prototype | |||||||
|
template <class Tnum> bool poslt(const interval<Tnum>& x, const interval<Tnum>& y) ; | |||||||
| Description | |||||||
Tests if there could be a number in x which is
less than a number in y. Returns true unless
the lwoer bound of 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.