已知tan(πx+\frac{π}{2})=0,求x