A new method for computing the solutions of the beam equation is given for the case of the problem of a pile. The method could be used for other problems where it is necessary to solve boundary-value problems for ordinary differential equations over semi-infinite intervals.