Gas atmosphere physics problem involving gravity