hull [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:intervals,utilities Component type:function
Prototype
template <class Tnum>
interval<Tnum> hull(const Tnum& a, const Tnum& b) ;
Description
Returns a proper interval (lower bound less than upper bound) which is bounded by a and b.
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

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.