Calculation of gravity and magnetic anomalies of finite-length right polygonal prisms. (Q313622)