math.h

Arduino trig and exponential functions use the avr-libc library. The library includes a great number of useful mathematical functions for manipulating floating point numbers.

The Atmega8 chip, which is now dated, but still supported, does not have enough memory to be able to use the math.h library so you will probably need to update to an Atmega168 if you wish to use any of these functions.