basic multipole computation