A development of the theory of trigonometric polynomials (TPs) is considered that involves generalization of the notion of TP and extension of the methods and results to cylindrical polynomials (CPs). On the basis of the proposed augmentation of TPs and CPs, a general approach is presented to the analysis of guided waves and resonances in electromagnetics and beyond. The method employs the known explicit forms of dispersion equations (DEs) describing eigenoscillations and normal waves in layered structures and is based on the development of the theory of generalized TPs and CPs performed in the study. The approach enables one to complete rigorous proofs of existence and determine domains of localization of the TP and CP zeros and the DE roots and validate iterative numerical solution techniques.