37 if(std::isinf(y.lower()) && std::isinf(y.upper())) {
38 throw std::domain_error(
"Interval contains an odd multiple of pi/2, "
39 "where the tangent is undefined.");
Models a closed numeric interval.
Definition interval.hpp:29
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 > 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