Polytropic equation of state (source code)

= Polytropic equation of state
{wiki=Polytrope}

A polytropic equation of state relates pressure and density by $p=K\rho^\Gamma$ with constant $K$ and exponent $\Gamma$. Writing $\Gamma=1+1/n$ defines the polytropic index $n$.