changed math include to cmath