Rational functional network for function approximation