special functions: split trigonometric functions from mathfunc.c

The file mathfunc.c is getting too fat.  This starts a split.