symbolic computing of anisotropic resonant scattering factor