Evolution of C++ code that calculates unknown values in a motion equation.