merge nmath.c