compile with math library using gcc: gcc main.c -lm