${{\left(-\left(-1\right)^{\left \lfloor {{x}\over{2}} \right \rfloor+\left \lceil {{x}\over{2}}+{{1}\over{2}} \right \rceil+1}\right)\,\sqrt{1-\cos \left(\pi\,x\right)}\,\sqrt{ \cos \left(\pi\,x\right)+1}}\over{\left(-1\right)^{\left \lfloor {{x }\over{2}} \right \rfloor+\left \lceil {{x}\over{2}} \right \rceil} \,\cos \left(\pi\,x\right)-1^{\left \lfloor {{x}\over{ 2}}+{{1}\over{2}} \right \rfloor+\left \lceil {{x}\over{2}}+{{1 }\over{2}} \right \rceil}\,\cos \left(\pi\,x\right)-1 ^{\left \lfl