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

6.3.7 Arithmetic Operators

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

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