The following situation occurs when compiling with MinGW.
This kind of information has not been solved after checking a lot of information, because this problem does not exist when using Microsoft's compiler.
It was found later that only the header file needs to be added
#include <math.h>
That's it.