added cosx.c