implemented trigo math functions