Polynomial and rational function modeling