odd functions for calculating useful quantities in magnetism and neutron / x-ray scattering