C++ Numerical Computation Code