Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.1 DD-00006-011

6.2.7 Arithmetic Operators

kc_interval<T> operator+(const kc_interval<T>& o) const; 
kc_interval<T> operator-(const kc_interval<T>& o) const; 
kc_interval<T> operator*(const kc_interval<T>& o) const; 
kc_interval<T> operator/(const kc_interval<T>& o) const; 
kc_interval<T> operator+() const; 
kc_interval<T> operator-() const; 
 
kc_interval<T> operator+(const std::complex<T>& o) const; 
kc_interval<T> operator-(const std::complex<T>& o) const; 
kc_interval<T> operator*(const std::complex<T>& o) const; 
kc_interval<T> operator/(const std::complex<T>& o) const; 
 
kc_interval<T>& operator+=(const kc_interval<T>& o); 
kc_interval<T>& operator-=(const kc_interval<T>& o); 
kc_interval<T>& operator*=(const kc_interval<T>& o); 
kc_interval<T>& operator/=(const kc_interval<T>& o); 
 
kc_interval<T>& operator+=(const std::complex<T>& o); 
kc_interval<T>& operator-=(const std::complex<T>& o); 
kc_interval<T>& operator*=(const std::complex<T>& o); 
kc_interval<T>& operator/=(const std::complex<T>& o);

These member functions execute the respective C++ arithmetic operation on the kc_interval<T> object.