added cosx.c
Merge pull request #1 from aturhani/master

added cosx.c