The calculation of Lamé polynomials