Rational numbers and functions