C++: fixed some coefficients.