sinpi cospi functions
tweak remainder for rationals
Merge pull request #4112 from simonbyrne/sinpi

add sinpi cospi functions