Equations of sine and cosine graphs