plot y=cos x