Numerical Methods for Treating Unbounded Media