Approximation by Generalized Rational Functions