Seol mar théacs é seo: Generalized associated Legendre functions and their applications