Also replace cosf() (C99) with cos()