"fatal error: cmath: No such file or directory"

It actually is: https://en.cppreference.com/w/cpp/header/cmath

... but not for AVR-Based boards. Try compiling for an ESP8266/32 or ARM-based board.

2 Likes