Application of Geometric Integration to some Mechanical Problems