The Calculation of Bloch Functions