double norm()to IntList computes the norm by v by squaring the elements, adding the squares together and taking the square-root of the sum. You can compute the vector of squares using map and the define a method double sum() to compute the sum.
double eval(IntList p, Double x)to evaluate the polynomial at coordinate x. Use Horner' rule asserting that