Deal well with logarithms of unit vectors
Do not assume that numpy needs to be initialized by this module