| |||||||
| |||||||
![]() | |||||||
Prototype | |||||||
template <class Tnum> interval<Tnum> sym_hull(const Tnum& r) ; | |||||||
![]() | |||||||
Description | |||||||
Returns an interval which as r for the upper bound and -r for
the lower bound. In other words, [-r,r] .
Identical in effect to calling the constructor
interval<Tnum>(-r,r)
| |||||||
![]() | |||||||
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.