Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In the case of univariate polynomials, there is such a Positivstellensatz for trigonometric polynomials, see math.washington.edu/~thomas/frg/frgbook/… exercise 3.37. i would suppose that it can be generalized to more variables.