Based on the improved analytical expression for computing the gravity anomalies due to a homogeneous polyhedral body composed of polygonal facets, and by applying the forward theory with the coordinate transformation of vector and tensor, we deduced the analytical expressions for both gravity gradient tensor and magnetic anomalies due to a polygon, and obtained new analytical expressions for computing vertical gradient of gravity anomalies and vertical component of magnetic anomalies due to a polyhedral bod...