Update equations.cpp