Include the tgmath header: it makes it so that common math functions (sin, cos, tan, etc…) to use a more appropriate version (cosf, tanl, etc…).