from numpy import (sqrt, atleast_1d, abs, imag, sign, where, cos, arccos, ceil,