Modeling sine and cosine functions