Power series methods tools in C++