It appears that you confused the effects of a and b in the function . The value of a is determined by the amplitude and the value of b is determined by the period.