The document defines several polynomial functions and evaluates them for different inputs. It defines f(x)=x^3-10x^2+31x-30 and evaluates it for various values of x, y, a, printing the results. It then defines another polynomial phi(x)=x^4-55x^2-210x-216 and evaluates it and f for some values. Finally it defines a 5th degree polynomial F(x) and evaluates it for several inputs, printing all results as 0.