smoother sine function