A generalized isothermal equation of state for dense liquids