Fixed math function calls

Looks like code copied from python sdk. Math functions are calling in a wrong way.