Analytic and numeric Green's functions for a two-dimensional electron gas in an orthogonal magnetic field