### Introduction to the Complex Mathematics Library

The Complex Mathematics Library provides you with the facilities to manipulate complex numbers and to perform standard mathematical operations on them.

The Complex Mathematics Library comprises two classes: complex and c_exception. Use complex to manipulate complex numbers and you use c_exception to handle errors created by the functions and operations in the complex class.

These are the main headings for Library details:

- Mathematical Operators for complex - The complex class defines a set of mathematical operators with the same precedence as the corresponding real operators. With these operators, you can code expressions on complex numbers.
- Mathematical Functions for complex - The complex class defines a set of mathematical, trigonometric, magnitude, and conversion functions as friend functions of complex objects.
- Predefined Constants - The Complex Mathematics Library defines a set of mathematical constants (if they have not been previously defined).
- Input and Output Operators for complex - The complex class defines input and output operators for 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.
- Error Functions - The c_exception class lets you handle errors that are created by the functions and operations in the complex class. You can also define your own version of the error handling function.