A theorem on infinite products of eigenvalues of Sturm-Liouville type operators