Discretization by rational and quasi-rational functions of multi-dimensional elliptic problems in the whole space