Proceedings of the Royal Irish Academy: A method of determining quantum-mechanical eigenvalues and eigenfunctions