Virial coefficients from equation of state