C + + library for solving problems in physics