C++ classes to implement complex mathematical functions.