6. Calculation of elementary math functions