Polynomial approximations for arbitrary functions