| |||||||
| |||||||
| Prototype | |||||||
|
template <class Tnum> interval<Tnum> hull(const interval<Tnum>& x, const Tnum& r) ; | |||||||
| Description | |||||||
Returns the largest interval which would contain the bounds of x
and r. The lower bound of the interval will be either r or the lower
bound of the interval, whichever is lower. The upper bound of the interval
will be either r or the upper bound of the interval, whichever
is greater.
| |||||||
| Definition | |||||||
| interval.cct | |||||||
| Preconditions | |||||||
|
| |||||||
| Complexity | |||||||
| Example | |||||||
In hull.cc:
dint A(1,2),B(3,4); cout << "hull(A,B)" << hull(A,B) << endl; cout << "hull(B,A)" << hull(B,A) << endl; cout << "hull(A,5)" << hull(A,Num(5)) << endl; cout << "hull(5,A)" << hull(Num(5),A) << endl; cout << "hull(5)" << hull(Num(5)) << endl; cout << "sym_hull(5)" << sym_hull(Num(5)) << endl; | |||||||
| Notes | |||||||
| See also | |||||||

Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.