1: \begin{abstract}
2: We consider the numerical solution of scalar wave equations in domains which
3: are the union of a bounded domain and a finite number of infinite cylindrical waveguides. The aim of this paper is to provide
4: a new convergence analysis of both the Perfectly Matched Layer (PML) method and the
5: Hardy space infinite element method in a unified framework.
6: We treat both diffraction and resonance problems.
7: The theoretical error bounds are compared with errors in numerical experiments.
8: \end{abstract}
9: