numerical aspect of equation of state in flash calculations