test cnog with libmath.h