Rational equations and inequalities