Evaluate the Function f(x)=x^4+6x^2-7x+1 for x=3