39 if(std::isinf(y.lower()) && std::isinf(y.upper())) {
40 throw std::domain_error(
"Interval contains an odd multiple of pi/2, "
41 "where the tangent is undefined.");
Models an interval whose bounds may be open.
Definition general_interval.hpp:36
bool empty() const
Is *this the empty interval?
Definition general_interval.hpp:127
bool left_open() const
Is lower() NOT contained in the interval?
Definition general_interval.hpp:136
bool right_open() const
Is upper() NOT contained in the interval?
Definition general_interval.hpp:153
Conversions between sigma::GeneralInterval and the boost interval its closure wraps.
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
GeneralInterval< T > general_from_boost_(const boost_interval_t< T > &x, bool left_open=false, bool right_open=false)
Convert a boost interval into a sigma::GeneralInterval.
Definition general_convert.hpp:65
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 > sin(const GeneralInterval< T > &a)
Calculate the sine of a general interval.
Definition trigonometry.ipp:9
GeneralInterval< T > atan(const GeneralInterval< T > &a)
Calculate the arctangent of a general interval.
Definition trigonometry.ipp:71
GeneralInterval< T > cos(const GeneralInterval< T > &a)
Calculate the cosine of a general interval.
Definition trigonometry.ipp:17
GeneralInterval< T > asin(const GeneralInterval< T > &a)
Calculate the arcsine of a general interval.
Definition trigonometry.ipp:50
GeneralInterval< T > acos(const GeneralInterval< T > &a)
Calculate the arccosine of a general interval.
Definition trigonometry.ipp:61
GeneralInterval< T > tan(const GeneralInterval< T > &a)
Calculate the tangent of a general interval.
Definition trigonometry.ipp:23