cos(\pi n\pm\alpha)={\left(-1 \right)}^{n}cos\alpha