Using Period To Evaluate Sine And Cosine