Souce codes for manuscript: Ren et al., 2018, New analytical expression of magnetic gradient tensor for homogeneous polyhedrons, Geophysics, to be submitted.