plot y=cos(x)