Rational analogues of sine and cosine