Closed-form formula of magnetic gradient tensor
for a homogeneous polyhedral magnetic target:
a tetrahedral grid example

http://software.seg.org/2017/0006

https://doi.org/10.1190/geo2016-0470.1

Please read and accept disclaimer.txt before using this code.
