The model introduces the Cardan formula to solve and expresses the solution as a form of trigonometric function or hyperbolic function,which is suit for the CO2 viscosity calculation of cross-critical wide ranges of temperature and pressure existed during the gas injection.