A generalized equation of state for hot, dense matter