Math fixes (constants) for hydro-devel

Minor changes: use built-in constants in math lib.

Tested in Roboguide, as well as on a R-30iA/7.70P/23.