updated jmath.h and fac.c