How do you determine the period of y=cosπx?