plot y=|1-cos(x)|