It's sine, not cosine.