The Complex Mathematics Library provides you with the facilities to manipulate
complex numbers and to perform standard mathematical operations on them. This
library is comprised of two classes:
complex is the class that lets you manipulate complex numbers
c_exception is the class that you use to handle errors created by the
functions and operations in the complex class.
The Complex Mathematics Library provides you with the following functionality:
Mathematical operators with the same precedence as the corresponding real
operators. With these operators, you can code expressions on complex numbers.
Mathematical, trigonometric, magnitude, and conversion functions as friend
functions of complex objects.
Predefined mathematical constants.
Input and output operators for USL I/O Stream Library input and output:
Complex numbers are written to the output stream in the format (real,imag).
Complex numbers are read from the input stream in one of two formats: (real,imag)
or real.
The c_exception class to handle errors. You can also define your own version
of the error handling function.