Positive roots of polynomials and stationary points of real fractional functions