That is totally easy.
What's not so easy, necessarily, is complex numerically safe program in C++ (that performs well).