cos(pi-x)