Approximate solution of elliptic and parabolic boundary value problems