Create functions.c

Mathematical Functions Implementation