CMATH is a comprehensive library for complex-number arithmetics and mathematics.
The following features make CMATH an ideal replacement for other available complex class libraries:
1. High-performance implementation in machine code leads to superior speed.
2. Accuracy and safety are greatly enhanced.
3. Polar coordinates (magnitude;angle) are supported in addition to the usual cartesian coordinates (real;imaginary).
4. Each of the floating-point accuracies (complex<float>, complex<double>, complex<extended>, and their polar<T> counterparts) is given its own, individually optimized treatment.
5. Switching from your compiler's complex class library to CMATH is very simple: Just replace the include-file <complex.h> with <newcplx.h> - that's it!
6. Additionally, all CMATH functions cann be called in classic C style with a type-specific previx (like cf_sin, cd_exp, pd_mul); due to reduced overhead, this way is even more efficient than using the class library functions.
This version is for Microsoft Visual C++ (any version of Visual Studio from the current release back to Visual Studio 2005).