A formula is derived that transforms an arbitrary analytic function of a complete variable into a stream function of a compressible subsonic flow. The formula yields compressible flows around symmetric and asymmetric obstacles. It is a generalization of the stress function expression for an incompressible fluid. The formula can be employed for the approximate determination of a subsonic flow around an obstacle. The method can be extended to partially supersonic flows.