These should be available in your programming language of choice. Arduino (used here) makes use of the avr-libc math library to perform the calculations.
It is a tinyAVR 1-series MCU, classified in GCC under avrxmega3 architecture. Recent GCC versions support it as a target, but current avr-libc (2.0.0) does not (yet?), which requires the workaround ...
Debian or Ubuntu: apt-get install gcc-avr binutils-avr libc-avr avrdude Redhat or Fedora: yum install avr-gcc avr-binutils avr-libc avrdude Arch or Manjaro: pacman -S avr-gcc avr-inutils avr-libc The ...