Approximate the greatest real zero of the function g(x)=x^3-3x+1 to the nearest tenth.