“…Improperly placed multipoles, or presence of redundant multipoles, can cause numerical instability leading to inaccurate results. There are some rules for semi-automatic multipole setting [4,8,11,12], but, in many cases, the existing algorithms for automatic multipole placement are not robust, slow and not entirely suitable for complex geometries. To overcome this problem, one can start with a high density of multipoles uniformly distributed over the object under examination.…”