39 if(a.
lower() < T(1)) {
40 throw std::domain_error(
"Interval has values less than 1.");
Models a closed numeric interval.
Definition interval.hpp:29
value_t lower() const
Returns the lower bound of the interval.
Definition interval.hpp:116
bool empty() const
Is *this the empty interval?
Definition interval.hpp:108
Conversions between sigma::Interval and the boost interval it wraps.
Interval< T > from_boost_(const boost_interval_t< T > &x)
Convert a boost interval into a sigma::Interval.
Definition convert.hpp:48
void assert_within_unit_(const Interval< T > &a, bool open, const std::string &name)
Throws unless every value in a lies in the unit interval.
Definition convert.hpp:74
boost_interval_t< T > to_boost_(const Interval< T > &a)
Convert a sigma::Interval into the boost interval it wraps.
Definition convert.hpp:31
The primary namespace for the sigma library.
Definition affine.hpp:12
GeneralInterval< T > atanh(const GeneralInterval< T > &a)
Calculate the inverse hyperbolic tangent of a general interval.
Definition hyperbolic.ipp:75
GeneralInterval< T > tanh(const GeneralInterval< T > &a)
Calculate the hyperbolic tangent of a general interval.
Definition hyperbolic.ipp:45
GeneralInterval< T > cosh(const GeneralInterval< T > &a)
Calculate the hyperbolic cosine of a general interval.
Definition hyperbolic.ipp:17
GeneralInterval< T > acosh(const GeneralInterval< T > &a)
Calculate the inverse hyperbolic cosine of a general interval.
Definition hyperbolic.ipp:61
GeneralInterval< T > asinh(const GeneralInterval< T > &a)
Calculate the inverse hyperbolic sine of a general interval.
Definition hyperbolic.ipp:53
GeneralInterval< T > sinh(const GeneralInterval< T > &a)
Calculate the hyperbolic sine of a general interval.
Definition hyperbolic.ipp:9